mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Make changed result accurate for credentials
This commit is contained in:
@@ -81,13 +81,13 @@ class Command(BaseCommand):
|
|||||||
"username": options.get("registry_username"),
|
"username": options.get("registry_username"),
|
||||||
"verify_ssl": options.get("verify_ssl"),
|
"verify_ssl": options.get("verify_ssl"),
|
||||||
}
|
}
|
||||||
|
for key, value in inputs.items():
|
||||||
registry_cred.inputs = inputs
|
if registry_cred.get_input(key) != value:
|
||||||
registry_cred.save()
|
registry_cred.inputs[key] = value
|
||||||
changed = True
|
changed = True
|
||||||
|
if changed:
|
||||||
if not cred_created:
|
registry_cred.save()
|
||||||
print("Updated 'Default Execution Environment Credential'")
|
print("'Default Execution Environment Credential' updated.")
|
||||||
|
|
||||||
# Create default globally available Execution Environments
|
# Create default globally available Execution Environments
|
||||||
for ee in reversed(settings.GLOBAL_JOB_EXECUTION_ENVIRONMENTS):
|
for ee in reversed(settings.GLOBAL_JOB_EXECUTION_ENVIRONMENTS):
|
||||||
|
|||||||
Reference in New Issue
Block a user