Make non-required params actually optional, fix idempotency issues

This commit is contained in:
beeankha
2020-02-25 23:51:26 -05:00
parent 1c4042340c
commit b532012748
8 changed files with 24 additions and 16 deletions

View File

@@ -115,9 +115,9 @@ def main():
'name': new_name if new_name else name,
'inventory': inventory_id,
}
if description:
if description is not None:
group_fields['description'] = description
if variables:
if variables is not None:
group_fields['variables'] = json.dumps(variables)
if state == 'absent':