diff --git a/tableau_documents/tableau_parameters.py b/tableau_documents/tableau_parameters.py index b00a844..9fec3cc 100644 --- a/tableau_documents/tableau_parameters.py +++ b/tableau_documents/tableau_parameters.py @@ -270,7 +270,7 @@ def get_datasource_xml(self) -> str: def get_parameter_by_name(self, parameter_name: str) -> TableauParameter: for p in self._parameters: - if p.name == parameter_name: + if self.parameters[p].name == parameter_name: return p else: raise NoMatchFoundException('No parameter named {}'.format(parameter_name))