mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #7622 from rmt/develop
Fix boolean logic so verify_env has meaning
This commit is contained in:
commit
d05b22fd92
@ -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