Skip to content

Commit 58c7af8

Browse files
[patch] remove extra blank spaces
1 parent 2537f04 commit 58c7af8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

bin/mas-devops-notify-slack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def notifyPipelineComplete(channels: list[str], rc: int, pipelineName: str, inst
191191
message = [
192192
SlackUtil.buildHeader(f"{emoji} MAS {pipelineName.title()} Pipeline {status}"),
193193
SlackUtil.buildSection(f"Pipeline Run: `{pipelineRunName}`{instanceInfo}{durationText}{additionalInfo}")
194-
]
194+
]
195195
response = SlackUtil.postMessageBlocks(channelId, message, threadId)
196196
# Clean up ConfigMap
197197
SlackUtil.deleteThreadConfigMap(namespace, pipelineRunName)

src/mas/devops/slack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def createThreadConfigMap(cls, namespace: str, pipelineRunName: str, channelId:
291291
config.load_incluster_config()
292292
except Exception:
293293
config.load_kube_config()
294-
v1 = client.CoreV1Api()
294+
v1 = client.CoreV1Api()
295295
configmap_name = f"slack-thread-{pipelineRunName}"
296296
configmap = client.V1ConfigMap(
297297
metadata=client.V1ObjectMeta(
@@ -307,7 +307,7 @@ def createThreadConfigMap(cls, namespace: str, pipelineRunName: str, channelId:
307307
)
308308
v1.create_namespaced_config_map(namespace=namespace, body=configmap)
309309
logger.info(f"Created ConfigMap {configmap_name} in namespace {namespace}")
310-
return True
310+
return True
311311
except Exception as e:
312312
logger.error(f"Failed to create ConfigMap: {e}")
313313
return False
@@ -355,13 +355,13 @@ def deleteThreadConfigMap(cls, namespace: str, pipelineRunName: str) -> bool:
355355
Returns:
356356
bool: True if ConfigMap was deleted successfully, False otherwise
357357
"""
358-
try:
358+
try:
359359
# Load Kubernetes configuration
360360
try:
361361
config.load_incluster_config()
362362
except Exception:
363363
config.load_kube_config()
364-
364+
365365
v1 = client.CoreV1Api()
366366
configmap_name = f"slack-thread-{pipelineRunName}"
367367
v1.delete_namespaced_config_map(name=configmap_name, namespace=namespace)

0 commit comments

Comments
 (0)