Skip to content

Commit 17908a4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7e80022 commit 17908a4

File tree

1 file changed

+42
-38
lines changed

1 file changed

+42
-38
lines changed

src/awx_plugins/credentials/plugins.py

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -578,44 +578,48 @@
578578
},
579579
)
580580

581-
insights = ManagedCredentialType(
582-
namespace='insights',
583-
kind='insights',
584-
name=gettext_noop('Insights'),
585-
managed=True,
586-
inputs={
587-
'fields': [
588-
{
589-
'id': 'username', 'label': gettext_noop('Username'), 'type': 'string', 'help_text': gettext_noop('Required for basic authentication'),
590-
},
591-
{
592-
'id': 'password', 'label': gettext_noop('Password'), 'type': 'string', 'secret': True, 'help_text': gettext_noop('Required for basic authentication'),
593-
},
594-
{
595-
'id': 'client_id', 'label': gettext_noop('Client ID'), 'type': 'string', 'help_text': gettext_noop('Alternative to username and password. Required for service account authentication'),
596-
},
597-
{
598-
'id': 'client_secret', 'label': gettext_noop('Client Secret'), 'type': 'string', 'secret': True, 'help_text': gettext_noop('Alternative to username and password. Required for service account authentication'),
599-
}
600-
],
601-
'required': [],
602-
},
603-
injectors={
604-
'extra_vars': {
605-
'scm_username': '{{username}}',
606-
'scm_password': '{{password}}',
607-
'client_id': '{{client_id}}',
608-
'client_secret': '{{client_secret}}',
609-
'authentication': '{% if client_id %}service_account{% else %}basic{% endif %}',
610-
},
611-
'env': {
612-
'INSIGHTS_USER': '{{username}}',
613-
'INSIGHTS_PASSWORD': '{{password}}',
614-
'INSIGHTS_CLIENT_ID': '{{client_id}}',
615-
'INSIGHTS_CLIENT_SECRET': '{{client_secret}}',
616-
},
617-
},
618-
)
581+
insights = ManagedCredentialType(namespace='insights',
582+
kind='insights',
583+
name=gettext_noop('Insights'),
584+
managed=True,
585+
inputs={'fields': [{'id': 'username',
586+
'label': gettext_noop('Username'),
587+
'type': 'string',
588+
'help_text': gettext_noop('Required for basic authentication'),
589+
},
590+
{'id': 'password',
591+
'label': gettext_noop('Password'),
592+
'type': 'string',
593+
'secret': True,
594+
'help_text': gettext_noop('Required for basic authentication'),
595+
},
596+
{'id': 'client_id',
597+
'label': gettext_noop('Client ID'),
598+
'type': 'string',
599+
'help_text': gettext_noop('Alternative to username and password. Required for service account authentication'),
600+
},
601+
{'id': 'client_secret',
602+
'label': gettext_noop('Client Secret'),
603+
'type': 'string',
604+
'secret': True,
605+
'help_text': gettext_noop('Alternative to username and password. Required for service account authentication'),
606+
},
607+
],
608+
'required': [],
609+
},
610+
injectors={'extra_vars': {'scm_username': '{{username}}',
611+
'scm_password': '{{password}}',
612+
'client_id': '{{client_id}}',
613+
'client_secret': '{{client_secret}}',
614+
'authentication': '{% if client_id %}service_account{% else %}basic{% endif %}',
615+
},
616+
'env': {'INSIGHTS_USER': '{{username}}',
617+
'INSIGHTS_PASSWORD': '{{password}}',
618+
'INSIGHTS_CLIENT_ID': '{{client_id}}',
619+
'INSIGHTS_CLIENT_SECRET': '{{client_secret}}',
620+
},
621+
},
622+
)
619623

620624
rhv = ManagedCredentialType(
621625
namespace='rhv',

0 commit comments

Comments
 (0)