summaryrefslogtreecommitdiff
path: root/network/haproxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'network/haproxy.py')
-rw-r--r--network/haproxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/haproxy.py b/network/haproxy.py
index 0d1db039..0ab17549 100644
--- a/network/haproxy.py
+++ b/network/haproxy.py
@@ -196,10 +196,10 @@ class HAProxy(object):
"""
Capture the output for a command
"""
- if not 'command' in self.command_results.keys():
+ if 'command' not in self.command_results:
self.command_results['command'] = []
self.command_results['command'].append(cmd)
- if not 'output' in self.command_results.keys():
+ if 'output' not in self.command_results:
self.command_results['output'] = []
self.command_results['output'].append(output)