__cdist_log_level=<log level int value>; __cdist_log_level_name=<log level name> (#574)
This commit is contained in:
parent
1ae5b1732e
commit
f0dc21ec0c
20 changed files with 192 additions and 40 deletions
|
|
@ -31,6 +31,7 @@ from cdist import test
|
|||
from cdist.exec import local
|
||||
from cdist.exec import remote
|
||||
from cdist.core import explorer
|
||||
import logging
|
||||
|
||||
import os.path as op
|
||||
my_dir = op.abspath(op.dirname(__file__))
|
||||
|
|
@ -233,7 +234,9 @@ class ExplorerClassTestCase(test.CdistTestCase):
|
|||
self.remote.global_explorer_path)
|
||||
self.assertEqual(output_dict['__target_host_tags'],
|
||||
self.local.target_host_tags)
|
||||
self.assertEqual(output_dict['__cdist_log_level'], 'WARNING')
|
||||
self.assertEqual(output_dict['__cdist_log_level'],
|
||||
str(logging.WARNING))
|
||||
self.assertEqual(output_dict['__cdist_log_level_name'], 'WARNING')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ echo "__target_fqdn: $__target_fqdn"
|
|||
echo "__explorer: $__explorer"
|
||||
echo "__target_host_tags: $__target_host_tags"
|
||||
echo "__cdist_log_level: $__cdist_log_level"
|
||||
echo "__cdist_log_level_name: $__cdist_log_level_name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue