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

@@ -112,11 +112,11 @@ def main():
# Create the data that gets sent for create and update
org_fields = {'name': name}
if description:
if description is not None:
org_fields['description'] = description
if custom_virtualenv:
if custom_virtualenv is not None:
org_fields['custom_virtualenv'] = custom_virtualenv
if max_hosts:
if max_hosts is not None:
org_fields['max_hosts'] = max_hosts
if state == 'absent':