mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 18:48:12 -03:30
16 lines
422 B
Python
16 lines
422 B
Python
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()
|
|
|