mirror of
https://github.com/Hyperspeed1313/porkbun-dynamic-dns-python.git
synced 2026-01-31 04:41:21 +00:00
Remove "quiet" from apiConfig before we send any API requests.
This commit is contained in:
parent
2d98bed301
commit
b81721e3d8
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ if len(sys.argv)>2: #at least the config and root domain is specified
|
|||
apiConfig = json.load(open(sys.argv[1])) #load the config file into a variable
|
||||
rootDomain=sys.argv[2].lower()
|
||||
canPrint=not apiConfig["quiet"].lower=="true"
|
||||
del apiConfig["quiet"] # Remove quiet so it doesn't get send with the API requests
|
||||
|
||||
if len(sys.argv)>3 and sys.argv[3]!='-i': #check if a subdomain was specified as the third argument
|
||||
subDomain=sys.argv[3].lower()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue