Created
December 11, 2015 03:23
-
-
Save ryandotclair/78a80c0b26c53b6eadca to your computer and use it in GitHub Desktop.
try4_sr.py
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
except ValueError: | |
logger.critical( | |
"Login failure. $SRUSER and $SRPASS credentials failed. Please confirm the environmental variables are " | |
"properly set with correct username/password") | |
sys.exit(1) | |
except Exception as e: | |
logger.critical( | |
"Unisphere couldn't be reached. Please confirm SRUNILOCATION environment variable is properly set and " | |
"Unisphere is up and running.. Details: {}".format(e)) | |
sys.exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment