forked from ungleich-public/cdist
Add -l/--log-level option. Honor __cdist_loglevel env var. (#572)
Add -l/--log-level option, __cdist_loglevel -> __cdist_log_level; honor __cdist_log_level env var
This commit is contained in:
parent
f08ac264a0
commit
3454da076f
23 changed files with 152 additions and 69 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#
|
||||
|
||||
import os
|
||||
from . import util
|
||||
|
||||
|
||||
'''
|
||||
|
|
@ -107,6 +108,7 @@ class Code(object):
|
|||
'__global': self.local.base_path,
|
||||
'__files': self.local.files_path,
|
||||
'__target_host_tags': self.local.target_host_tags,
|
||||
'__cdist_log_level': util.log_level_env_var_val(local.log),
|
||||
}
|
||||
|
||||
def _run_gencode(self, cdist_object, which):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue