diff options
author | Chad Roberts <croberts@redhat.com> | 2015-11-03 15:43:53 -0500 |
---|---|---|
committer | Chad Roberts <croberts@redhat.com> | 2015-11-06 09:36:20 -0500 |
commit | 0ed4f10dfa7b0fb327c26dc3801ade00f3204480 (patch) | |
tree | 06681477b2d48c367669a623a0005247e0a21562 /saharaclient/api/clusters.py | |
parent | 1919f56c9f8dc26b84dec08eeb76214fddbc07a9 (diff) | |
download | python-saharaclient-0ed4f10dfa7b0fb327c26dc3801ade00f3204480.tar.gz |
Allowing for shares to be edited on an existing cluster
Now allowing the shares parameter to be passed on
a cluster update call. It is optional and defaults to
None.
Change-Id: I1a16bff7bd3d20a4253a66bedc86d8c1c72328a6
Partial-Implements: bp sahara-add-shares-to-clusters
Depends-On: I33971eb495c5a318ba17a4b3f98534b9e8776deb
Diffstat (limited to 'saharaclient/api/clusters.py')
-rw-r--r-- | saharaclient/api/clusters.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/saharaclient/api/clusters.py b/saharaclient/api/clusters.py index 3c9941b..ba9130f 100644 --- a/saharaclient/api/clusters.py +++ b/saharaclient/api/clusters.py @@ -84,10 +84,11 @@ class ClusterManager(base.ResourceManager): self._delete('/clusters/%s' % cluster_id) def update(self, cluster_id, name=None, description=None, is_public=None, - is_protected=None): + is_protected=None, shares=None): data = {} self._copy_if_defined(data, name=name, description=description, - is_public=is_public, is_protected=is_protected) + is_public=is_public, is_protected=is_protected, + shares=shares) return self._patch('/clusters/%s' % cluster_id, data) |