Comment 1 for bug 1593970

Revision history for this message
Monika (970954-monika) wrote :

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

So can you please be more specific about the bug.