mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
commit
1ea3d55167
@ -179,10 +179,7 @@ def create_ovirt4_credtype(apps, schema_editor):
|
|||||||
|
|
||||||
|
|
||||||
def add_azure_cloud_environment_field(apps, schema_editor):
|
def add_azure_cloud_environment_field(apps, schema_editor):
|
||||||
azure_rm_credtype = CredentialType.defaults.get('azure_rm', None)
|
azure_rm_credtype = CredentialType.objects.get(kind='cloud',
|
||||||
if azure_rm_credtype:
|
name='Microsoft Azure Resource Manager')
|
||||||
azure_rm_credtype = azure_rm_credtype()
|
azure_rm_credtype.inputs = CredentialType.defaults.get('azure_rm')().inputs
|
||||||
azure_rm_credtype.pk = CredentialType.objects.get(
|
azure_rm_credtype.save()
|
||||||
kind='cloud', name='Microsoft Azure Resource Manager'
|
|
||||||
).pk
|
|
||||||
azure_rm_credtype.save()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user