Skip to content

Commit 092b63d

Browse files
authored
Merge branch 'stable' into update-251030
2 parents b75f57e + b678660 commit 092b63d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/mas-devops-notify-slack

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def notifyProvisionFyre(channel: str, rc: int) -> bool:
4141
message = [
4242
SlackUtil.buildHeader(f":glyph-ok: Your IBM DevIT Fyre OCP cluster ({name}) is ready"),
4343
SlackUtil.buildSection(f"{url}"),
44-
SlackUtil.buildSection(f"- Username: `{username}`\n - Password: `{password}`"),
44+
SlackUtil.buildSection(f"- Username: `{username}`\n- Password: `{password}`"),
4545
SlackUtil.buildSection(f"<https://beta.fyre.ibm.com/development/vms|Fyre Dashboard>{toolchainLink}")
4646
]
4747
else:
@@ -56,9 +56,9 @@ def notifyProvisionFyre(channel: str, rc: int) -> bool:
5656

5757
if __name__ == "__main__":
5858
# If SLACK_TOKEN or SLACK_CHANNEL env vars are not set then silently exit taking no action
59-
SLACK_TOKEN = os.getenv("SLACK_TOKEN", None)
60-
SLACK_CHANNEL = os.getenv("SLACK_CHANNEL", None)
61-
if SLACK_TOKEN is None or SLACK_CHANNEL is None:
59+
SLACK_TOKEN = os.getenv("SLACK_TOKEN", "")
60+
SLACK_CHANNEL = os.getenv("SLACK_CHANNEL", "")
61+
if SLACK_TOKEN == "" or SLACK_CHANNEL == "":
6262
sys.exit(0)
6363

6464
# Initialize the properties we need

0 commit comments

Comments
 (0)