Skip to content

Commit

Permalink
Updated fmc-acp.py - add raw input for username
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilliams9999 committed Jan 25, 2017
1 parent e701407 commit 378033c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmc-acp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

results=[]
ipaddr = raw_input("Enter your FMC IP address or hostname: ")
user1="api"
user1= raw_input("Enter your FMC username: ")
pass1= raw_input("Enter your FMC password: ")
querystring = {"limit":"1000"}
headers = {
Expand Down Expand Up @@ -90,7 +90,7 @@ def getSubdictData(subdict, fieldname, prop2):

for i in results:
response = requests.request("GET", i, headers=headers, verify=False)
raw=response.json()
raw=json.loads(response.text)
raw.setdefault('name', "noname_rule")
raw.setdefault('action', "no_action")
raw.setdefault('sourceNetworks', "any-src")
Expand Down

0 comments on commit 378033c

Please sign in to comment.