Skip to content

Commit 0132671

Browse files
committed
#2 - refactoring
1 parent 36beb93 commit 0132671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github_actions/common/actions/init_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, environment: str, args: Namespace):
1212
super().__init__(environment)
1313
self.cluster_provider = args.rmk_cluster_provider
1414
self.github_token = args.github_token
15-
self.slack_notification = getattr(args, "rmk_slack_notifications", "")
15+
self.slack_notifications = getattr(args, "rmk_slack_notifications", "")
1616
self.slack_channel = getattr(args, "rmk_slack_channel", "")
1717
self.slack_message_details = getattr(args, "rmk_slack_message_details", "")
1818
self.slack_webhook = getattr(args, "rmk_slack_webhook", "")
@@ -23,7 +23,7 @@ def execute(self):
2323
def run(self):
2424
"""Configure Slack notifications if enabled."""
2525
os.environ["RMK_GITHUB_TOKEN"] = self.github_token
26-
if self.slack_notification == "true":
26+
if self.slack_notifications == "true":
2727
os.environ["RMK_SLACK_WEBHOOK"] = self.slack_webhook
2828
os.environ["RMK_SLACK_CHANNEL"] = self.slack_channel
2929

0 commit comments

Comments
 (0)