From 1b2d45709051f14d29b5c1f784c615daee153d61 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 10 Mar 2021 10:09:01 -0500 Subject: [PATCH] fix a bug in the Centrify Vault plugin --- awx/main/credential_plugins/centrify_vault.py | 4 ++-- ...rify_vault_credtype.py => 0130_centrify_vault_credtype.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename awx/main/migrations/{0124_centrify_vault_credtype.py => 0130_centrify_vault_credtype.py} (87%) diff --git a/awx/main/credential_plugins/centrify_vault.py b/awx/main/credential_plugins/centrify_vault.py index 02be552634..e5b7949c13 100644 --- a/awx/main/credential_plugins/centrify_vault.py +++ b/awx/main/credential_plugins/centrify_vault.py @@ -89,7 +89,7 @@ def get_ID(**kwargs): result_str = response.json()["Result"]["Results"] return result_str[0]["Row"]["ID"] except (IndexError, KeyError): - raise RuntimeError("Error Detected!! Check the Inputs") + raise RuntimeError("Error Detected!! Check the Inputs") # CheckOut Password from Centrify Vault, Input : ID @@ -123,7 +123,7 @@ def centrify_backend(**kwargs): endpoint = { 'endpoint': endpoint, 'client_id': client_id, - 'client_password': client_password + 'client_password': client_password, 'oauth_scope': kwargs.get('oauth_scope', 'awx') } token = handle_auth(**endpoint) diff --git a/awx/main/migrations/0124_centrify_vault_credtype.py b/awx/main/migrations/0130_centrify_vault_credtype.py similarity index 87% rename from awx/main/migrations/0124_centrify_vault_credtype.py rename to awx/main/migrations/0130_centrify_vault_credtype.py index ff65ad9b75..5133efa310 100644 --- a/awx/main/migrations/0124_centrify_vault_credtype.py +++ b/awx/main/migrations/0130_centrify_vault_credtype.py @@ -12,7 +12,7 @@ def setup_tower_managed_defaults(apps, schema_editor): class Migration(migrations.Migration): dependencies = [ - ('main', '0123_drop_hg_support'), + ('main', '0129_unifiedjob_installed_collections'), ] operations = [