1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Respect gem_source option if specified

This commit is contained in:
Vadim Berezniker 2013-03-06 16:58:57 -08:00
parent ca16a91da1
commit b9a3cc551e

View file

@ -151,7 +151,7 @@ def main():
if module.params['gem_source'] and module.params['state'] == 'latest': if module.params['gem_source'] and module.params['state'] == 'latest':
module.fail_json(msg="Cannot maintain state=latest when installing from local source") 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'] module.params['gem_source'] = module.params['name']
changed = False changed = False