2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-08 09:22:33 +00:00

change accessed attribute from content to text

- content is "Content of the response, in bytes."
- python is smart enough to print this
- might be clearer to use "text" for someone new looking at this example.
This commit is contained in:
Nick Buonarota
2019-02-06 14:09:42 -05:00
parent 2180c28ff8
commit 89ae21a719

View File

@@ -81,7 +81,7 @@ response = requests.get(get_all_nodes + "?userName=" + username + "&userPW=" + p
# Display returned data
print "List of all nodes extracted with userid and password:"
print response.content
print response.text
#
# Send a request to get all nodes, passing in a token
#
@@ -91,6 +91,6 @@ response = requests.get(get_all_nodes, verify=False, headers={'X-Auth-Token': to
# Display returned data
print "List of all nodes extracted with authentication token:"
print response.content
print response.text
sys.exit(0)