Commit 1bb5c7e8 by Feanil Patel

Only notify when hipchat is setup.

parent 4914f794
......@@ -137,6 +137,7 @@ if __name__ == '__main__':
if environment is None or deployment is None or play is None:
msg = "Unable to retrieve environment, deployment, or play tag."
print(msg)
if notify:
notify("{} : {}".format(prefix, msg))
exit(0)
......@@ -157,6 +158,7 @@ if __name__ == '__main__':
except:
msg = "Failed to tag volumes associated with {}".format(instance_id)
print(msg)
if notify:
notify(msg)
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment