mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
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 2e2cd7f2de.
This commit is contained in:
@@ -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'))))
|
||||
|
||||
Reference in New Issue
Block a user