Logs are not triggered for the compute utility
Fixed the code so that logs will be triggered for compute utility pod from cli. Change-Id: Id9a5a25e1225bd6d5a7ea525706f3b7832ab483b
This commit is contained in:
parent
60e3090841
commit
e7320722bd
@ -29,8 +29,7 @@ facility = {{ .Values.conf.computerootwrapconf.DEFAULT.syslog_log_facility | quo
|
||||
if "AUSER" in os.environ:
|
||||
user_id = os.environ["AUSER"]
|
||||
elif {{ .Values.conf.utility.always_log_user | quote }} == 'true':
|
||||
os.environ["AUSER"] = "development site" #getpass.getuser()
|
||||
user_id = os.environ["AUSER"]
|
||||
user_id = 'development site'
|
||||
else:
|
||||
print("No username set in AUSER environment variable, for security reasons access restricted from connecting to container.")
|
||||
exit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user