Merge pull request #11385 from AlanCoding/my_cluster_host

Do not overwrite file-based CLUSTER_HOST_ID written by installer
This commit is contained in:
Alan Rominger 2021-12-02 10:53:59 -05:00 committed by GitHub
commit 97b60c43b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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