Fixed issue with on giving client ip and port to the intent handler
This commit is contained in:
parent
7dc92de383
commit
2a73291fa0
@ -71,10 +71,10 @@ def handle(intent_name, data):
|
|||||||
# import the create_skill method from the skill using the skill module path
|
# import the create_skill method from the skill using the skill module path
|
||||||
create_skill_method = utils.import_method_from_string(module_path_str, "create_skill")
|
create_skill_method = utils.import_method_from_string(module_path_str, "create_skill")
|
||||||
|
|
||||||
data = {'client_ip': data['client_ip'], 'client_port': data['client_port']}
|
skill_init_data = {'client_ip': data['client_ip'], 'client_port': data['client_port']}
|
||||||
|
|
||||||
# create a new object of the right skill for the utterance
|
# create a new object of the right skill for the utterance
|
||||||
skill = create_skill_method(data)
|
skill = create_skill_method(skill_init_data)
|
||||||
|
|
||||||
# import and call the handler method from the skill
|
# import and call the handler method from the skill
|
||||||
getattr(skill, handler_method_name)(data=data)
|
getattr(skill, handler_method_name)(data=data)
|
||||||
|
Reference in New Issue
Block a user