Logout is now handled by exit_json

This commit is contained in:
John Westcott IV 2020-01-17 15:44:25 -05:00 committed by beeankha
parent 65057c1fb7
commit c57754a29b

View File

@ -60,9 +60,11 @@ def main():
if json_output['old_license'] != new_license:
json_output['changed'] = True
# Deal with check mode
if module.check_mode:
module.logout()
module.exit_json(**json_output)
# We need to add in the EULA
new_license['eula_accepted'] = True
module.post_endpoint('config', data=new_license)
@ -72,3 +74,4 @@ def main():
if __name__ == '__main__':
main()