Skip to content

Commit bd2b145

Browse files
authored
[patch] Set secretName to default value when None (#40)
1 parent 691dc23 commit bd2b145

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mas/devops/mas.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def verifyMasInstance(dynClient: DynamicClient, instanceId: str) -> bool:
142142

143143

144144
def updateIBMEntitlementKey(dynClient: DynamicClient, namespace: str, icrUsername: str, icrPassword: str, artifactoryUsername: str = None, artifactoryPassword: str = None, secretName: str = "ibm-entitlement") -> ResourceInstance:
145+
if secretName is None:
146+
secretName = "ibm-entitlement"
145147
if artifactoryUsername is not None:
146148
logger.info(f"Updating IBM Entitlement ({secretName}) in namespace '{namespace}' (with Artifactory access)")
147149
else:

0 commit comments

Comments
 (0)