summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorHao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>2024-03-11 15:05:24 +0100
committerGitHub <noreply@github.com>2024-03-11 15:05:24 +0100
commitb076cb00a968f2fe5b65cbe1ad8b328fd03b030c (patch)
treed211cba6e2850566ef236648ceece9c3daeaeb6a /awxkit
parentUpgrade to postgres:15 (#14230) (diff)
downloadawx-b076cb00a968f2fe5b65cbe1ad8b328fd03b030c.tar.xz
awx-b076cb00a968f2fe5b65cbe1ad8b328fd03b030c.zip
Revert "Implement project pulling from Azure DevOps using Service Pri… (#14977)
Revert "Implement project pulling from Azure DevOps using Service Principals (#14628)" This reverts commit 2e2cd7f2de52a02a7bbf343f26bf8d0177dcdec3.
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/projects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awxkit/awxkit/api/pages/projects.py b/awxkit/awxkit/api/pages/projects.py
index 845d112cea..125f452637 100644
--- a/awxkit/awxkit/api/pages/projects.py
+++ b/awxkit/awxkit/api/pages/projects.py
@@ -50,7 +50,7 @@ class Project(HasCopy, HasCreate, HasNotifications, UnifiedJobTemplate):
def create_payload(self, name='', description='', scm_type='git', scm_url='', scm_branch='', organization=Organization, credential=None, **kwargs):
if credential:
if isinstance(credential, Credential):
- if credential.ds.credential_type.namespace not in ('scm', 'insights', 'azure_rm'):
+ if credential.ds.credential_type.namespace not in ('scm', 'insights'):
credential = None # ignore incompatible credential from HasCreate dependency injection
elif credential in (Credential,):
credential = (Credential, dict(credential_type=(True, dict(kind='scm'))))