From 776c4a988a0978b857136af3a69a53e0af80ce2c Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 23 Nov 2021 14:02:13 -0500 Subject: [PATCH] Do not overwrite file-based CLUSTER_HOST_ID written by installer --- awx/settings/production.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/awx/settings/production.py b/awx/settings/production.py index c80fc2d9d8..75b70f7bfc 100644 --- a/awx/settings/production.py +++ b/awx/settings/production.py @@ -9,7 +9,6 @@ import copy import errno import sys import traceback -import socket # Django Split Settings from split_settings.tools import optional, include @@ -89,8 +88,6 @@ except IOError: # The below runs AFTER all of the custom settings are imported. -CLUSTER_HOST_ID = socket.gethostname() - DATABASES.setdefault('default', dict()).setdefault('OPTIONS', dict()).setdefault( 'application_name', f'{CLUSTER_HOST_ID}-{os.getpid()}-{" ".join(sys.argv)}'[:63] ) # noqa