ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <>
Subject [GitHub] incubator-ariatosca pull request #187: ARIA-313 Fix handling the `required` ...
Date Wed, 26 Jul 2017 14:54:11 GMT
Github user mxmrlv commented on a diff in the pull request:
    --- Diff: aria/modeling/ ---
    @@ -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 or file a JIRA ticket
with INFRA.

View raw message