1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Merge pull request #550 from jangsutsr/fix-7737-1

Follow up fix #7737
This commit is contained in:
Aaron Tan 2017-10-26 11:29:05 -04:00 committed by GitHub
commit 1ea3d55167

View File

@ -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()