summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-12 16:15:22 +0000
committerGerrit Code Review <review@openstack.org>2015-02-12 16:15:22 +0000
commit319ceb6acf55382218dcd971367613aecb3e4afc (patch)
tree2b0df6c3dce4b9b1488e1098fe032a07ce121621
parent377358bfd222902a81299c3ffedcd57b0b54dda5 (diff)
parent48df6a090b144bd08f32df4a0dd35834078b4f4c (diff)
downloadpython-saharaclient-319ceb6acf55382218dcd971367613aecb3e4afc.tar.gz
Merge "Removed cluster validation on client side"0.8.00.7.7
-rw-r--r--saharaclient/api/clusters.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/saharaclient/api/clusters.py b/saharaclient/api/clusters.py
index a86c270..4130a21 100644
--- a/saharaclient/api/clusters.py
+++ b/saharaclient/api/clusters.py
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import six
-
from saharaclient.api import base
@@ -25,12 +23,6 @@ class Cluster(base.Resource):
class ClusterManager(base.ResourceManager):
resource_class = Cluster
- def _assert_variables(self, **kwargs):
- for var_name, var_value in six.iteritems(kwargs):
- if var_value is None:
- raise base.APIException('Cluster is missing field "%s"' %
- var_name)
-
def create(self, name, plugin_name, hadoop_version,
cluster_template_id=None, default_image_id=None,
is_transient=None, description=None, cluster_configs=None,
@@ -43,11 +35,6 @@ class ClusterManager(base.ResourceManager):
'hadoop_version': hadoop_version,
}
- if cluster_template_id is None:
- self._assert_variables(default_image_id=default_image_id,
- cluster_configs=cluster_configs,
- node_groups=node_groups)
-
self._copy_if_defined(data,
cluster_template_id=cluster_template_id,
is_transient=is_transient,