mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix boolean logic so verify_env has meaning
This commit is contained in:
parent
1b7601c18d
commit
5d15d72396
@ -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']],
|
||||
|
Loading…
Reference in New Issue
Block a user