Traceback instead of error message when argument's format for get_attr is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Tatiana Kholkina |
Bug Description
When trying to create stack with the following template
heat_template_
resources:
random_str:
type: OS::Heat:
outputs:
string:
value: {get_attr: [[random_str, value]]}
heat shows traceback instead of error message:
ERROR: Arguments to "get_attr" must be of the form [resource_name, attribute, (path), ...]
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
stack_
File "/opt/stack/
**common_
File "/opt/stack/
self.outputs = self.resolve_
File "/opt/stack/
return self.t.parse(self, snippet)
File "/opt/stack/
return parse(self.
File "/opt/stack/
return dict((k, recurse(v)) for k, v in six.iteritems(
File "/opt/stack/
return dict((k, recurse(v)) for k, v in six.iteritems(
File "/opt/stack/
return dict((k, recurse(v)) for k, v in six.iteritems(
File "/opt/stack/
return dict((k, recurse(v)) for k, v in six.iteritems(
File "/opt/stack/
return Func(stack, fn_name, recurse(args))
File "/opt/stack/
self.
File "/opt/stack/
self.fn_name)
ValueError: Arguments to "get_attr" must be of the form [resource_name, attribute, (path), ...]
Changed in heat: | |
assignee: | nobody → Tetiana Lashchova (tlashchova) |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → kilo-2 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-2 → 2015.1.0 |
Hi Tetiana,
Can you please try again without double brackets, like this?
outputs:
string:
value: {get_attr: [random_str, value]}
That should work, per the error message. Let me know!