From b9a3cc551e1ab6c2125add5d21e3eed3c46b9c61 Mon Sep 17 00:00:00 2001 From: Vadim Berezniker Date: Wed, 6 Mar 2013 16:58:57 -0800 Subject: [PATCH] Respect gem_source option if specified --- library/gem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/gem b/library/gem index 104c4ecd778..156554b2b3b 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