From dcc0921a33db45bae4a7aacd7ae7556a2c048dc9 Mon Sep 17 00:00:00 2001 From: zhouyunfeng Date: Mon, 21 Nov 2016 10:31:05 +0800 Subject: [PATCH] Fixed some typos. Trivial fixes. Change-Id: I53e4d697841376375c78f27f371fcd2dee720298 --- sahara/plugins/cdh/abstractversionhandler.py | 4 ++-- sahara/plugins/cdh/client/types.py | 2 +- sahara/plugins/cdh/config_helper.py | 2 +- sahara/plugins/cdh/plugin_utils.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sahara/plugins/cdh/abstractversionhandler.py b/sahara/plugins/cdh/abstractversionhandler.py index 2609da3e..5e37271e 100644 --- a/sahara/plugins/cdh/abstractversionhandler.py +++ b/sahara/plugins/cdh/abstractversionhandler.py @@ -81,9 +81,9 @@ class AbstractVersionHandler(object): class BaseVersionHandler(AbstractVersionHandler): def __init__(self): - # Need to be specitied in subclass + # Need to be specified in subclass self.config_helper = None # config helper - self.cloudera_utils = None # CoulderaUtils + self.cloudera_utils = None # ClouderaUtils self.deploy = None # to deploy self.edp_engine = None self.plugin_utils = None # PluginUtils diff --git a/sahara/plugins/cdh/client/types.py b/sahara/plugins/cdh/client/types.py index e39267b1..65ecbe89 100644 --- a/sahara/plugins/cdh/client/types.py +++ b/sahara/plugins/cdh/client/types.py @@ -337,7 +337,7 @@ class BaseApiResource(BaseApiObject): raise NotImplementedError def _require_min_api_version(self, version): - """Check mininum verson requirement + """Check minimum version requirement Raise an exception if the version of the api is less than the given version. diff --git a/sahara/plugins/cdh/config_helper.py b/sahara/plugins/cdh/config_helper.py index 68013e25..63473df1 100644 --- a/sahara/plugins/cdh/config_helper.py +++ b/sahara/plugins/cdh/config_helper.py @@ -71,7 +71,7 @@ class ConfigHelper(object): 'Await Cloudera agents timeout', 'general', 'cluster', config_type='int', priority=1, default_value=300, is_optional=True, description="Timeout for Cloudera agents connecting to" - " Coudera Manager, in seconds") + " Cloudera Manager, in seconds") AWAIT_MANAGER_STARTING_TIMEOUT = p.Config( 'Timeout for Cloudera Manager starting', 'general', 'cluster', diff --git a/sahara/plugins/cdh/plugin_utils.py b/sahara/plugins/cdh/plugin_utils.py index 527dcda1..a1c5b6ca 100644 --- a/sahara/plugins/cdh/plugin_utils.py +++ b/sahara/plugins/cdh/plugin_utils.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # This file only contains utils not related to cm_api, while in -# cloudera_utils the functios are cm_api involved. +# cloudera_utils the functions are cm_api involved. import os import telnetlib # nosec