Commit c71f0e51 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

add addtion parameter supplement

parent a6f226c7
Pipeline #395351 passed with stages
in 59 seconds
......@@ -302,7 +302,7 @@ def build_feature(feature):
return feature_instance
def add_function_impl_obj(thing, impl_obj, feature_name, *args):
def add_function_impl_obj(thing, impl_obj, feature_name, **kwargs):
"""
Adds user-specific implemented object to a thing instance
......@@ -322,7 +322,7 @@ def add_function_impl_obj(thing, impl_obj, feature_name, *args):
)
else:
APP_LOGGER.info("Implementation object is added into the functionality %s" % feature_name)
impl_ins = impl_obj(*args)
impl_ins = impl_obj(**kwargs)
impl_ins.class_name = feature_name
thing.features[feature_name] = impl_ins
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment