Skip to content

Commit 4fb00cf

Browse files
committed
update hostname config using Put operation
1 parent 1c9ca3f commit 4fb00cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RESTCONF/put-hostname-config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main():
5252
# RESTCONF media types for REST API headers
5353
headers = {'Content-Type': 'application/yang-data+json',
5454
'Accept': 'application/yang-data+json'}
55-
# this statement performs a GET on the specified url
55+
# this statement performs a PUT on the specified url
5656
response = requests.request("PUT",url, auth=(USER, PASS),
5757
data=payload, headers=headers, verify=False)
5858

0 commit comments

Comments
 (0)