Skip to content

Commit

Permalink
password question
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Jul 13, 2016
1 parent e310ea0 commit a601948
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmc/ack_commented_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@
import requests
import datetime
import argparse
import getpass

parser = argparse.ArgumentParser()
parser.add_argument('-u', '--username', required=True, help='Automation User')
parser.add_argument('-p', '--password', required=True, help='Automation Secret')
parser.add_argument('-p', '--password', required=False, help='Automation Secret')
parser.add_argument('-H', '--host', required=True, help='Hostname')
parser.add_argument('-s', '--site', required=True, help='Monitoring Site')
args = parser.parse_args()

if not args.password:
args.password = getpass.getpass('Please enter password for %s: ' % args.username)

baseurl = 'https://%s/%s/check_mk/view.py' % (args.host, args.site)
services_to_ack = {}

Expand Down

0 comments on commit a601948

Please sign in to comment.