Skip to content

Instantly share code, notes, and snippets.

@ggrelet
Created March 28, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggrelet/534860342de9b2ac20c6f5b0b0dd1d42 to your computer and use it in GitHub Desktop.
Save ggrelet/534860342de9b2ac20c6f5b0b0dd1d42 to your computer and use it in GitHub Desktop.
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