Fix boolean logic so verify_env has meaning

This commit is contained in:
Robert M. Thomson 2013-10-04 20:39:56 +02:00
parent 1b7601c18d
commit 5d15d72396

View File

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