diff --git a/library/gem b/library/gem index 104c4ecd77..156554b2b3 100644 --- a/library/gem +++ b/library/gem @@ -151,7 +151,7 @@ def main(): if module.params['gem_source'] and module.params['state'] == 'latest': module.fail_json(msg="Cannot maintain state=latest when installing from local source") - if module.params['gem_source'] is not 'null': + if not module.params['gem_source']: module.params['gem_source'] = module.params['name'] changed = False