Merge pull request #138 from t-woerner/ipagroup_fix_changed

ipagroup: Fix changed flag, new test cases
This commit is contained in:
Thomas Woerner
2019-10-31 11:06:00 +01:00
committed by GitHub
2 changed files with 179 additions and 1 deletions

View File

@@ -408,7 +408,10 @@ def main():
try:
result = api_command(ansible_module, command, name,
args)
if "completed" in result and result["completed"] > 0:
if "completed" in result:
if result["completed"] > 0:
changed = True
else:
changed = True
except Exception as e:
ansible_module.fail_json(msg="%s: %s: %s" % (command, name,