From 95e8c7d3691b923d08845aa81ab8aa9f43944349 Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Tue, 29 Jun 2021 14:09:15 +0530 Subject: [PATCH] modified ha node example --- examples/ha_nodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ha_nodes.py b/examples/ha_nodes.py index ccd7309b2..b4f14edc1 100644 --- a/examples/ha_nodes.py +++ b/examples/ha_nodes.py @@ -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