From 5d15d72396e115408e2c0242c938ee2c0d223d01 Mon Sep 17 00:00:00 2001 From: "Robert M. Thomson" Date: Fri, 4 Oct 2013 20:39:56 +0200 Subject: [PATCH] Fix boolean logic so verify_env has meaning --- salt/cli/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index 22d79a8f6f..8fb82a0568 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -39,9 +39,9 @@ class SaltCMD(parsers.SaltCMDOptionParser): self.parse_args() if self.config['verify_env']: - if (not self.config['log_file'].startswith('tcp://') or - not self.config['log_file'].startswith('udp://') or - not self.config['log_file'].startswith('file://')): + if not (self.config['log_file'].startswith('tcp://') or + self.config['log_file'].startswith('udp://') or + self.config['log_file'].startswith('file://')): # Logfile is not using Syslog, verify verify_files( [self.config['log_file']],