diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-02-02 09:36:01 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-02-02 09:36:01 -0500 |
commit | f94417164f57891eb016ca5e98c6e713e1f66726 (patch) | |
tree | 642014ba4f9644bdb0ab768063c0d731a76185aa /roles/lib_openshift/src/class/oc_label.py | |
parent | 94fd71fa8fba70205519e18625975b83373c1535 (diff) | |
download | openshift-f94417164f57891eb016ca5e98c6e713e1f66726.tar.gz openshift-f94417164f57891eb016ca5e98c6e713e1f66726.tar.bz2 openshift-f94417164f57891eb016ca5e98c6e713e1f66726.tar.xz openshift-f94417164f57891eb016ca5e98c6e713e1f66726.zip |
Fixing linters.
Diffstat (limited to 'roles/lib_openshift/src/class/oc_label.py')
-rw-r--r-- | roles/lib_openshift/src/class/oc_label.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/lib_openshift/src/class/oc_label.py b/roles/lib_openshift/src/class/oc_label.py index 4fc2ffc13..8e1ba9ceb 100644 --- a/roles/lib_openshift/src/class/oc_label.py +++ b/roles/lib_openshift/src/class/oc_label.py @@ -54,7 +54,7 @@ class OCLabel(OpenShiftCLI): for current_host_labels in self.current_labels: rbool = self.compare_labels(current_host_labels) - if rbool == False: + if not rbool: return False return True @@ -107,8 +107,8 @@ class OCLabel(OpenShiftCLI): if len(extra_labels) > 0: return True - else: - return False + + return False def replace(self): ''' replace currently stored labels with user provided labels ''' @@ -190,6 +190,7 @@ class OCLabel(OpenShiftCLI): return self.openshift_cmd(cmd) + # pylint: disable=too-many-branches,too-many-return-statements @staticmethod def run_ansible(params, check_mode=False): ''' run the idempotent ansible code |