mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Make sure changed is always set
This commit is contained in:
@@ -33,7 +33,7 @@ options:
|
|||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- By default, the license manifest will only be applied if Tower is currently
|
- By default, the license manifest will only be applied if Tower is currently
|
||||||
unlicensed or trial licensed. When force=true, the license is always applied.
|
unlicensed or trial licensed. When force=true, the license is always applied.
|
||||||
required: True
|
required: True
|
||||||
type: bool
|
type: bool
|
||||||
default: 'False'
|
default: 'False'
|
||||||
@@ -62,7 +62,7 @@ def main():
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
json_output = {}
|
json_output = {'changed': False}
|
||||||
|
|
||||||
if not module.params.get('eula_accepted'):
|
if not module.params.get('eula_accepted'):
|
||||||
module.fail_json(msg='You must accept the EULA by passing in the param eula_accepted as True')
|
module.fail_json(msg='You must accept the EULA by passing in the param eula_accepted as True')
|
||||||
@@ -83,7 +83,7 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Determine if we will install the license
|
# Determine if we will install the license
|
||||||
perform_install = (not already_licensed) or module.params.get('force')
|
perform_install = bool((not already_licensed) or module.params.get('force'))
|
||||||
|
|
||||||
# Handle check mode
|
# Handle check mode
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|||||||
Reference in New Issue
Block a user