Github user mxmrlv commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/187#discussion_r129569763 --- Diff: aria/modeling/utils.py --- @@ -64,81 +64,84 @@ def service_template(self): return self.container.service_template -def merge_parameter_values(parameter_values, declared_parameters, model_cls): +def validate_no_undeclared_inputs(declared_inputs, supplied_inputs): + + undeclared_inputs = [input for input in supplied_inputs if input not in declared_inputs] + if undeclared_inputs: + raise exceptions.UndeclaredInputsException( + 'Undeclared inputs have been provided: {0}; Declared inputs: {1}' + .format(string_list_as_string(list(undeclared_inputs)), --- End diff -- No need for `list`, it is already a list.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---