Commit 6ecdef6b by Michael DeHaan

Type checking on library/apt means the upgrade parameter is now properly True/False

parent 38bd17af
......@@ -241,9 +241,9 @@ def main():
force_yes = p['force']
if p['upgrade'] != 'no' and p['package'] is None:
if p['upgrade'] and p['package'] is None:
upgrade(module, p['upgrade'])
elif p['upgrade'] != 'no' and p['package'] != None:
elif p['upgrade'] and p['package'] != None:
module.fail_json(msg="Upgrade should not be used in conjunction with other options.")
packages = p['package'].split(',')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment