Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sever-sever committed Nov 14, 2023
1 parent 46358e0 commit 3b86167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure/api/configure_via_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def configure_vyos(address, key, data, timeout=30):
payload = {'data': data, 'key': key}

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
response = requests.post(url, headers=headers, data=payload, verify=False, timeout=timeout)
response = requests.post(
url, headers=headers, data=payload, verify=False, timeout=timeout
)

if response.status_code == 200:
print("Configuration successful.")
Expand Down

0 comments on commit 3b86167

Please sign in to comment.