This commit is contained in:
Darko Poljak 2018-03-06 07:35:27 +01:00
parent aba8dc4965
commit 05084c6fc6
2 changed files with 4 additions and 2 deletions

View File

@ -97,7 +97,8 @@ class CdistEntityError(Error):
def stderr(self):
output = []
for stderr_name, stderr_path in self.stderr_paths:
if os.path.exists(stderr_path) and os.path.getsize(stderr_path) > 0:
if (os.path.exists(stderr_path) and
os.path.getsize(stderr_path) > 0):
label_begin = '---- BEGIN ' + stderr_name + ':stderr ----'
label_end = '---- END ' + stderr_name + ':stderr ----'
output.append('\n' + label_begin)

View File

@ -278,7 +278,8 @@ class Configuration(metaclass=Singleton):
_dist_config_file = os.path.join(
os.path.abspath(os.path.join(os.path.dirname(cdist.__file__), "conf")),
'cdist.cfg')
default_config_files = (_global_config_file, _dist_config_file, _local_config_file, )
default_config_files = (_global_config_file, _dist_config_file,
_local_config_file, )
ENV_VAR_CONFIG_FILE = 'CDIST_CONFIG_FILE'
VERBOSITY_VALUES = _VERBOSITY_VALUES