mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Follow up fix #7737
The original fix introduced migration failure, this PR managed to fix that. Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
This commit is contained in:
parent
9e8ac3b09b
commit
7181bd1c9b
@ -179,10 +179,7 @@ def create_ovirt4_credtype(apps, schema_editor):
|
||||
|
||||
|
||||
def add_azure_cloud_environment_field(apps, schema_editor):
|
||||
azure_rm_credtype = CredentialType.defaults.get('azure_rm', None)
|
||||
if azure_rm_credtype:
|
||||
azure_rm_credtype = azure_rm_credtype()
|
||||
azure_rm_credtype.pk = CredentialType.objects.get(
|
||||
kind='cloud', name='Microsoft Azure Resource Manager'
|
||||
).pk
|
||||
azure_rm_credtype.save()
|
||||
azure_rm_credtype = CredentialType.objects.get(kind='cloud',
|
||||
name='Microsoft Azure Resource Manager')
|
||||
azure_rm_credtype.inputs = CredentialType.defaults.get('azure_rm')().inputs
|
||||
azure_rm_credtype.save()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user