Skip to content

Commit

Permalink
modified ha node example
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkateshRavula committed Jun 29, 2021
1 parent 53d2707 commit 95e8c7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/ha_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
node_by_uri = ha_nodes.get_by_uri(all_nodes[0]['uri'])
pprint(node_by_uri.data)

# update description of HA node
data = {'description': 'updated node'}
ha_node = ha_nodes.update(data)
# update role of HA node
data = {'role': 'Standby'}
ha_node = node_by_uri.update(data)
print("\n## Update HA node successfully!")
pprint(ha_node.data)

# Patch update
# Patch update role
print("\nUpdate the HA node using patch")
ha_node.patch(operation="replace", path="/role", value="Standby")
ha_node.patch(operation="replace", path="/role", value="Active")
pprint(ha_node.data)

# Delete HA node
Expand Down

0 comments on commit 95e8c7d

Please sign in to comment.