-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b0de3
commit 6ba79d7
Showing
4 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# status of different prods. Please set the environment variable CASSIOPEE_EMAIL | ||
# Usage: python notifyInstall.py --recipients='[email protected] [email protected]' | ||
import os | ||
import sys | ||
from time import strptime, strftime | ||
|
||
# Parse command-line arguments | ||
|
@@ -19,7 +20,7 @@ def parseArgs(): | |
script_args = parseArgs() | ||
recipients = script_args.recipients.split(' ') | ||
if not recipients[0]: | ||
recipients = ['[email protected]'] #, '[email protected]'] | ||
recipients = ['[email protected]', '[email protected]'] | ||
|
||
# Check install status | ||
log_entries = [] | ||
|
@@ -44,4 +45,5 @@ def parseArgs(): | |
messageSubject="[Installation] State: {}".format(baseState), | ||
messageText=messageText) | ||
except ImportError: | ||
raise SystemError("Error: KCore is required to import notify.") | ||
print("Error: KCore is required to import notify.") | ||
sys.exit() |