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']],