fix
This commit is contained in:
parent
ad1cc9f646
commit
4b59ff1aac
@ -60,7 +60,7 @@ def create_managed_registry_secret(spec, name, namespace, logger, **kwargs):
|
|||||||
secret = create_dockerlogin(
|
secret = create_dockerlogin(
|
||||||
logger,
|
logger,
|
||||||
secret,
|
secret,
|
||||||
secret_json_object,
|
secret_json_object["data"],
|
||||||
username_ref,
|
username_ref,
|
||||||
password_ref,
|
password_ref,
|
||||||
registry)
|
registry)
|
||||||
@ -132,7 +132,7 @@ def update_managed_registry_secret(
|
|||||||
secret = create_dockerlogin(
|
secret = create_dockerlogin(
|
||||||
logger,
|
logger,
|
||||||
secret,
|
secret,
|
||||||
secret_json_object,
|
secret_json_object["data"],
|
||||||
username_ref,
|
username_ref,
|
||||||
password_ref,
|
password_ref,
|
||||||
registry)
|
registry)
|
||||||
|
@ -33,7 +33,7 @@ def command_wrapper(logger, command, use_success: bool = True):
|
|||||||
env=system_env)
|
env=system_env)
|
||||||
out, err = sp.communicate()
|
out, err = sp.communicate()
|
||||||
resp = json.loads(out.decode(encoding='UTF-8'))
|
resp = json.loads(out.decode(encoding='UTF-8'))
|
||||||
if os.environ["DEBUG"] != None:
|
if "DEBUG" in system_env:
|
||||||
logger.info(resp)
|
logger.info(resp)
|
||||||
if resp["success"] != None and (not use_success or (use_success and resp["success"] == True)):
|
if resp["success"] != None and (not use_success or (use_success and resp["success"] == True)):
|
||||||
return resp
|
return resp
|
||||||
|
Loading…
Reference in New Issue
Block a user