Github user ahgittin commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/1143#issuecomment-171632733
still WIP, but getting closer; the right-unwrapping fix also helped get the
correctly YAML source attached to items (unexpanded). however still working on
template-4: there is some weirdness in when the locations defined in a
referenced type (e.g. template-2) are overwritten vs added to. template-3
references template-2 as a `type` in the `services` list, where 2 defines aws
with `identity: <REPLACE>` but it is overwritten and everything works, whereas
template-4 references template-2 using `entitySpec` and there the `<REPLACE>`
identity is *not* overwritten thus the failure.
i've added logic which says if a *referencer* defines a `location: ...` or
`locations` block (including `locations: []`) then it overwrites locations in
the referenced type. a bit inconsistent but what people want almost always i
think. at least as a stopgap. but the difference between template-3 and
template-4 is worrying.
@johnmccabe thanks for the comments, pls keep them coming!
---
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 [email protected] or file a JIRA ticket
with INFRA.
---