mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 04:15:02 -02:30
Squash a few deprecation warnings
- inspect.getargspec() -> inspect.getfullargspec() - register pytest.mark.fixture_args - replace use of DRF's deprecated NullBooleanField - fix some usage of naive datetimes in the tests - fix some strings with backslashes that ought to be raw strings
This commit is contained in:
@@ -152,7 +152,8 @@ SITE_ID = 1
|
||||
|
||||
# Make this unique, and don't share it with anybody.
|
||||
if os.path.exists('/etc/tower/SECRET_KEY'):
|
||||
SECRET_KEY = open('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||
with open('/etc/tower/SECRET_KEY', 'rb') as f:
|
||||
SECRET_KEY = f.read().strip()
|
||||
else:
|
||||
SECRET_KEY = base64.encodebytes(os.urandom(32)).decode().rstrip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user