mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 06:56:00 -03:30
monkey-patch another Django names_digest for FIPS support
This commit is contained in:
@@ -30,6 +30,7 @@ except ImportError:
|
|||||||
HAS_DJANGO = False
|
HAS_DJANGO = False
|
||||||
else:
|
else:
|
||||||
from django.db.backends.base import schema
|
from django.db.backends.base import schema
|
||||||
|
from django.db.models import indexes
|
||||||
from django.db.backends.utils import names_digest
|
from django.db.backends.utils import names_digest
|
||||||
|
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ if HAS_DJANGO is True:
|
|||||||
return h.hexdigest()[:length]
|
return h.hexdigest()[:length]
|
||||||
|
|
||||||
schema.names_digest = names_digest
|
schema.names_digest = names_digest
|
||||||
|
indexes.names_digest = names_digest
|
||||||
|
|
||||||
|
|
||||||
def find_commands(management_dir):
|
def find_commands(management_dir):
|
||||||
|
|||||||
Reference in New Issue
Block a user