summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <paride.legovini@canonical.com>2019-01-28 15:54:47 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-01-28 15:54:47 +0000
commit7a6ed1a23aeb26efaebc818a1a7cc7f7c6757b32 (patch)
treed846db783e75bf4e64dc25d50a801d7bd883bbe4
parentd1a2fe7307e9cf2251d1f9a666c12d71d3f522d6 (diff)
downloadvyos-cloud-init-7a6ed1a23aeb26efaebc818a1a7cc7f7c6757b32.tar.gz
vyos-cloud-init-7a6ed1a23aeb26efaebc818a1a7cc7f7c6757b32.zip
flake8: use ==/!= to compare str, bytes, and int literals
-rw-r--r--cloudinit/config/cc_rh_subscription.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/config/cc_rh_subscription.py b/cloudinit/config/cc_rh_subscription.py
index edee01e5..28c79b83 100644
--- a/cloudinit/config/cc_rh_subscription.py
+++ b/cloudinit/config/cc_rh_subscription.py
@@ -249,14 +249,14 @@ class SubscriptionManager(object):
except util.ProcessExecutionError as e:
if e.stdout.rstrip() != '':
for line in e.stdout.split("\n"):
- if line is not '':
+ if line != '':
self.log_warn(line)
else:
self.log_warn("Setting the service level failed with: "
"{0}".format(e.stderr.strip()))
return False
for line in return_out.split("\n"):
- if line is not "":
+ if line != "":
self.log.debug(line)
return True
@@ -268,7 +268,7 @@ class SubscriptionManager(object):
self.log_warn("Auto-attach failed with: {0}".format(e))
return False
for line in return_out.split("\n"):
- if line is not "":
+ if line != "":
self.log.debug(line)
return True