Browse Source

Fixing for tox tests. (flake8|pylint)

Kenny Woodson 8 years ago
parent
commit
7767df1e42

+ 2 - 0
roles/lib_openshift/library/oc_service.py

@@ -1269,6 +1269,7 @@ class OpenShiftCLIConfig(object):
 
 # -*- -*- -*- Begin included fragment: lib/service.py -*- -*- -*-
 
+
 # pylint: disable=too-many-instance-attributes
 class ServiceConfig(object):
     ''' Handle service options '''
@@ -1476,6 +1477,7 @@ class OCService(OpenShiftCLI):
         skip = ['clusterIP', 'portalIP']
         return not Utils.check_def_equal(self.user_svc.yaml_dict, self.service.yaml_dict, skip_keys=skip, debug=True)
 
+    # pylint: disable=too-many-return-statements,too-many-branches
     @staticmethod
     def run_ansible(params, check_mode):
         '''Run the idempotent ansible code'''

+ 1 - 0
roles/lib_openshift/src/class/oc_service.py

@@ -81,6 +81,7 @@ class OCService(OpenShiftCLI):
         skip = ['clusterIP', 'portalIP']
         return not Utils.check_def_equal(self.user_svc.yaml_dict, self.service.yaml_dict, skip_keys=skip, debug=True)
 
+    # pylint: disable=too-many-return-statements,too-many-branches
     @staticmethod
     def run_ansible(params, check_mode):
         '''Run the idempotent ansible code'''

+ 2 - 0
roles/lib_openshift/src/lib/service.py

@@ -1,4 +1,6 @@
 # pylint: skip-file
+# flake8: noqa
+
 
 # pylint: disable=too-many-instance-attributes
 class ServiceConfig(object):

+ 0 - 1
roles/lib_openshift/src/test/integration/oc_service.yml

@@ -126,4 +126,3 @@
       - svc_out.results.returncode == 1
       - "'not found' in svc_out.results.stderr"
       msg: service get failed
-