Created
March 28, 2018 16:32
-
-
Save ggrelet/534860342de9b2ac20c6f5b0b0dd1d42 to your computer and use it in GitHub Desktop.
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
login = args.login | |
password = args.password | |
if not login: | |
# Prompt the login | |
login = raw_input("Enter your login: ") | |
password = None | |
if not password: | |
password = getpass.getpass("Enter '%s' password: " % login) | |
apis = ct.connect_to_the_cloud(login, pwd=password) | |
# Get the URL to retrieve alerts | |
rhm_client = apis[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment