diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-02-12 16:15:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-02-12 16:15:22 +0000 |
commit | 319ceb6acf55382218dcd971367613aecb3e4afc (patch) | |
tree | 2b0df6c3dce4b9b1488e1098fe032a07ce121621 | |
parent | 377358bfd222902a81299c3ffedcd57b0b54dda5 (diff) | |
parent | 48df6a090b144bd08f32df4a0dd35834078b4f4c (diff) | |
download | python-saharaclient-319ceb6acf55382218dcd971367613aecb3e4afc.tar.gz |
-rw-r--r-- | saharaclient/api/clusters.py | 13 |
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, |