<div dir="ltr"><div>Hi Heaters.</div><div><br></div><div>I don't think that my question is very huge for openstack-dev, but it affects a lot of Heat resources </div><div>and need collect more opinions before apply some of follow approaches.</div><div>I recently uploaded initial approach for implementation common 'show' attribute <a href="https://review.openstack.org/#/q/status:open+project:openstack/heat+branch:master+topic:show-attribute,n,z">[1]</a> </div><div><br></div><div>On one of this review was raised one interesting suggestion:</div><div>'show' attribute should return map of all resource's attributes, i.e.</div><div><br></div><div><div>for each attr in self.attributes_schema:</div><div> outputs[attr] = _resolve_attribute(attr)</div></div><div>return outputs</div><div><br></div><div>I agree, that it's more easier than separate show_resource method for each resource and it's the same, what returns Neutron API on "show" request.</div><div>However, we already has opposite example, when OS::Nova::Server resource has bunch of attributes which are not similar on current 'show' attribute output:</div><div><br></div><div><a href="https://github.com/openstack/heat/blob/master/heat/engine/resources/openstack/nova/server.py#L918">https://github.com/openstack/heat/blob/master/heat/engine/resources/openstack/nova/server.py#L918</a><br></div><div><br></div><div>I suppose, that the same situation will be and for other resources.</div><div><br></div><div>So I want to ask about way, which we would like to follow?</div><div>[1] "show" as collection of attributes</div><div>[2] "show" as the same output for command "<some client> <name of resource>-show"</div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Regards,<div>Sergey.</div></div></div></div>
</div>