summaryrefslogtreecommitdiff
path: root/saharaclient/api/clusters.py
diff options
context:
space:
mode:
Diffstat (limited to 'saharaclient/api/clusters.py')
-rw-r--r--saharaclient/api/clusters.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/saharaclient/api/clusters.py b/saharaclient/api/clusters.py
index 6030bfe..49f9b28 100644
--- a/saharaclient/api/clusters.py
+++ b/saharaclient/api/clusters.py
@@ -213,6 +213,11 @@ class ClusterManagerV2(ClusterManagerV1):
data = {'force': True}
return self._delete('/clusters/%s' % cluster_id, data)
+ def update_keypair(self, cluster_id):
+ """Reflect an updated keypair on the cluster."""
+ data = {'update_keypair': True}
+ return self._patch("/clusters/%s" % cluster_id, data)
+
# NOTE(jfreud): keep this around for backwards compatibility
ClusterManager = ClusterManagerV1