mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Logout is now handled by exit_json
This commit is contained in:
parent
65057c1fb7
commit
c57754a29b
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user