debug 2
This commit is contained in:
parent
45e8b692f0
commit
d2025c628e
|
@ -322,7 +322,7 @@ def metric_config_gen(module, class_name_str):
|
|||
# Extract information of statsd config from the class of nameko service
|
||||
dest_dir = module.split('.')[0]
|
||||
file_name = module.split('.')[-1]
|
||||
_module = importlib.import_module(module)
|
||||
_module = importlib.import_module(name='.'+file_name, package=dest_dir)
|
||||
config_list = []
|
||||
for class_name in class_name_str.split(','):
|
||||
members = inspect.getmembers(getattr(getattr(_module, file_name), class_name), predicate=inspect.isfunction)
|
||||
|
|
Loading…
Reference in New Issue