There was an error while loading. Please reload this page.
1 parent 1c9ca3f commit 4fb00cfCopy full SHA for 4fb00cf
RESTCONF/put-hostname-config.py
@@ -52,7 +52,7 @@ def main():
52
# RESTCONF media types for REST API headers
53
headers = {'Content-Type': 'application/yang-data+json',
54
'Accept': 'application/yang-data+json'}
55
- # this statement performs a GET on the specified url
+ # this statement performs a PUT on the specified url
56
response = requests.request("PUT",url, auth=(USER, PASS),
57
data=payload, headers=headers, verify=False)
58
0 commit comments