mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
azure migrations
* delete azure credentials * delete azure inventory sources
This commit is contained in:
committed by
Ryan Petrello
parent
a08a158672
commit
0b40331107
15
awx/main/migrations/_azure_credentials.py
Normal file
15
awx/main/migrations/_azure_credentials.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import logging
|
||||
|
||||
from django.db.models import Q
|
||||
|
||||
logger = logging.getLogger('awx.main.migrations')
|
||||
|
||||
|
||||
def remove_azure_credentials(apps, schema_editor):
|
||||
'''Azure is not supported as of 3.2 and greater. Instead, azure_rm is
|
||||
supported.
|
||||
'''
|
||||
Credential = apps.get_model('main', 'Credential')
|
||||
logger.debug("Removing all Azure Credentials from database.")
|
||||
Credential.objects.filter(kind='azure').delete()
|
||||
|
||||
Reference in New Issue
Block a user