Clean up pep8 E711 violations
Fixed E711 errors
All ignores are to be removed in the next sequence of patches
Change-Id: Id9bcdfa276d30639dc6d16b8ce6db19101153fcd
diff --git a/stress/driver.py b/stress/driver.py
index 71d02a9..bdb5d4b 100644
--- a/stress/driver.py
+++ b/stress/driver.py
@@ -71,7 +71,7 @@
nova-manage on the controller.
"""
nodes = []
- if keypath == None or user == None:
+ if keypath is None or user is None:
return nodes
lines = utils.util.ssh(keypath, user, controller,
"nova-manage service list | grep ^nova-compute").\
@@ -206,7 +206,7 @@
case = random.choice(cases)
logging.debug('Chose %s' % case)
retry = case.invoke(manager, state)
- if retry != None:
+ if retry is not None:
retry_list.append(retry)
else:
logging.info('Cooling down...')