From bb4d4d6aa9e7136c9354a3db36f39c3cc86c7371 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Fri, 24 Mar 2017 10:58:32 -0400 Subject: [PATCH] lint fixes --- openshift/helper/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openshift/helper/__init__.py b/openshift/helper/__init__.py index 82de66c9..e31b0d87 100644 --- a/openshift/helper/__init__.py +++ b/openshift/helper/__init__.py @@ -300,11 +300,11 @@ def objects_match(obj_a, obj_b): match = False diffs = [] if obj_a is None and obj_b is None: - match = True + match = True elif not obj_a or not obj_b: - pass + pass elif type(obj_a).__name__ != type(obj_b).__name__: - pass + pass else: dict_a = obj_a.to_dict() dict_b = obj_b.to_dict() @@ -395,15 +395,15 @@ def get_base_model_name_snake(self, model_name): """ result = self.get_base_model_name(model_name) return string_utils.camel_case_to_snake(result) - + @staticmethod def attribute_to_snake(name): """ Convert an object property name from camel to snake """ result = string_utils.camel_case_to_snake(name) - if result.endswith('_i_p'): - result = re.sub(r'\_i\_p$', '_ip', result) + if result.endswith('_i_p'): + result = re.sub(r'\_i\_p$', '_ip', result) return result - + @staticmethod def get_model(api_version, kind): """