As mentioned we have tried to pass complex data extractions and we successfully retrieved the results.
e.g,
{ get_attribute: [server, ports, mac_address] }
The above ValueError mentioned is because of giving less than 2 arguments. We have checked it in “tosca-parser/toscaparser/functions.py” which is as follows:
def validate(self):
if len(self.args) < 2:
ExceptionCollector.appendException(
ValueError(_('Illegal arguments for function "{0}". Expected '
'arguments: "node-template-name", "req-or-cap"'
'(optional), "property name"'
).format(GET_ATTRIBUTE)))
return
As mentioned we have tried to pass complex data extractions and we successfully retrieved the results.
e.g,
{ get_attribute: [server, ports, mac_address] }
The above ValueError mentioned is because of giving less than 2 arguments. We have checked it in “tosca- parser/ toscaparser/ functions. py” which is as follows:
def validate(self): ector.appendExc eption( _('Illegal arguments for function "{0}". Expected ' name", "req-or-cap"' format( GET_ATTRIBUTE) ))
if len(self.args) < 2:
ExceptionColl
ValueError(
'arguments: "node-template-
'(optional), "property name"'
).
return
So can you please be more specific about the bug.