summaryrefslogtreecommitdiff
path: root/saharaclient/api/clusters.py
diff options
context:
space:
mode:
authorVitaly Gridnev <vgridnev@mirantis.com>2015-06-18 17:42:20 +0300
committerVitaly Gridnev <vgridnev@mirantis.com>2015-08-04 18:51:51 +0000
commitabd01a0bd3dc7aba73d35520c7061adbaee445b8 (patch)
tree22ef3b273356a31d028fc757b410efa61ea8c555 /saharaclient/api/clusters.py
parent9304c0a5ecb633e2f46af31bc301ead5e6b452fe (diff)
downloadpython-saharaclient-abd01a0bd3dc7aba73d35520c7061adbaee445b8.tar.gz
Add support of use_autoconfig field
This change will allow switch off autoconfiguration, when it's needed. Partial-Implements blueprint: recommend-configuration Change-Id: Iaf546262a68b74d9463c476097f0d5596cc38f96
Diffstat (limited to 'saharaclient/api/clusters.py')
-rw-r--r--saharaclient/api/clusters.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/saharaclient/api/clusters.py b/saharaclient/api/clusters.py
index 130143d..2503063 100644
--- a/saharaclient/api/clusters.py
+++ b/saharaclient/api/clusters.py
@@ -29,7 +29,8 @@ class ClusterManager(base.ResourceManager):
cluster_template_id=None, default_image_id=None,
is_transient=None, description=None, cluster_configs=None,
node_groups=None, user_keypair_id=None,
- anti_affinity=None, net_id=None, count=None):
+ anti_affinity=None, net_id=None, count=None,
+ use_autoconfig=None):
data = {
'name': name,
@@ -53,7 +54,7 @@ class ClusterManager(base.ResourceManager):
user_keypair_id=user_keypair_id,
anti_affinity=anti_affinity,
neutron_management_network=net_id,
- count=count)
+ count=count, use_autoconfig=use_autoconfig)
if count:
return self._create('/clusters/multiple', data)