diff options
Diffstat (limited to 'network/haproxy.py')
-rw-r--r-- | network/haproxy.py | 4 |
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) |