Skip to content

Commit 8a54b66

Browse files
[patch] use new comfigmap name in debug message
1 parent eb6b98a commit 8a54b66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mas/devops/slack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def getThreadConfigMap(cls, namespace: str, instanceId: str, pipelineRunName: st
334334
return configmap.data
335335
except client.exceptions.ApiException as e:
336336
if e.status == 404:
337-
logger.debug(f"ConfigMap slack-thread-{instanceId} not found in namespace {namespace}")
337+
logger.debug(f"ConfigMap slack-thread-{instanceId}-{pipelineRunName} not found in namespace {namespace}")
338338
else:
339339
logger.error(f"Failed to retrieve ConfigMap: {e}")
340340
return None
@@ -404,7 +404,7 @@ def deleteThreadConfigMap(cls, namespace: str, instanceId: str, pipelineRunName:
404404
return True
405405
except client.exceptions.ApiException as e:
406406
if e.status == 404:
407-
logger.warning(f"ConfigMap slack-thread-{instanceId} not found in namespace {namespace}")
407+
logger.warning(f"ConfigMap slack-thread-{instanceId}-{pipelineRunName} not found in namespace {namespace}")
408408
else:
409409
logger.error(f"Failed to delete ConfigMap: {e}")
410410
return False

0 commit comments

Comments
 (0)