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

add args into add_function_impl_obj

parent 58515498
Pipeline #395338 passed with stages
in 1 minute and 2 seconds
......@@ -302,7 +302,7 @@ def build_feature(feature):
return feature_instance
def add_function_impl_obj(thing, impl_obj, feature_name):
def add_function_impl_obj(thing, impl_obj, feature_name, *args):
Adds user-specific implemented object to a thing instance
......@@ -322,7 +322,7 @@ def add_function_impl_obj(thing, impl_obj, feature_name):
else:"Implementation object is added into the functionality %s" % feature_name)
impl_ins = impl_obj()
impl_ins = impl_obj(*args)
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