)]}'
{"doc/source/template_guide/hot_spec.rst":[{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"fda7797521f5211129d02885bdf06cadc696fd78","unresolved":false,"context_lines":[{"line_number":784,"context_line":"---------------"},{"line_number":785,"context_line":"The *resource_facade* function allows a provider template to retrieve data"},{"line_number":786,"context_line":"about its resource facade in the parent template."},{"line_number":787,"context_line":"The syntax of the *resource_facade* function is as follows::"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"  resource_facade: \u003cdata type\u003e"},{"line_number":790,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAWH%2F96jY%3D","line":787,"updated":"2014-04-01 08:54:16.000000000","message":"I think this needs to start by describing what a resource facade actually is, and why a template author should care about it.  \n\nIMO this is sufficiently non-obvious that we probably need a little example here.","commit_id":"7cb7236ff01a9c10881d27e3bade44279cc3c77c"},{"author":{"_account_id":7193,"name":"Thomas Spatzier","email":"thomas.spatzier@icloud.com","username":"thomasspatzier"},"change_message_id":"d709ea3db01339a5b298b25c2cc18fbf8e11680f","unresolved":false,"context_lines":[{"line_number":784,"context_line":"---------------"},{"line_number":785,"context_line":"The *resource_facade* function allows a provider template to retrieve data"},{"line_number":786,"context_line":"about its resource facade in the parent template."},{"line_number":787,"context_line":"The syntax of the *resource_facade* function is as follows::"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"  resource_facade: \u003cdata type\u003e"},{"line_number":790,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAWH%2F93d8%3D","line":787,"in_reply_to":"AAAAWH%2F96jY%3D","updated":"2014-04-01 14:57:33.000000000","message":"Hm, I think a bit more of explanation here definitely makes sense. However, I would probably not make it too big.\n\nIn the Havana cycle, we started out with hot_guide.rst and hot_spec.rst. Larger, more use case driven examples were supposed to end up in hot_guide.rst ... and that one could use quite some update on provider templates, software config, etc. So the bigger example could go there.","commit_id":"7cb7236ff01a9c10881d27e3bade44279cc3c77c"}],"heat/engine/cfn/functions.py":[{"author":{"_account_id":7193,"name":"Thomas Spatzier","email":"thomas.spatzier@icloud.com","username":"thomasspatzier"},"change_message_id":"9fb23106d64bc1c025f82fa6cc393f3ef65f0de8","unresolved":false,"context_lines":[{"line_number":527,"context_line":"        if attr \u003d\u003d self.METADATA:"},{"line_number":528,"context_line":"            return self.stack.parent_resource.metadata"},{"line_number":529,"context_line":"        elif attr \u003d\u003d self.UPDATE_POLICY:"},{"line_number":530,"context_line":"            up \u003d self.stack.parent_resource.t.get(\u0027UpdatePolicy\u0027, {})"},{"line_number":531,"context_line":"            return function.resolve(up)"},{"line_number":532,"context_line":"        elif attr \u003d\u003d self.DELETION_POLICY:"},{"line_number":533,"context_line":"            dp \u003d self.stack.parent_resource.t.get(\u0027DeletionPolicy\u0027, \u0027Delete\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F%2BGpM%3D","line":530,"updated":"2014-03-29 22:15:24.000000000","message":"Just a question: why did you change from using attr to \u0027UpdatePolicy\u0027? Wouldn\u0027t attr allow us to get template format specific spelled update policies going foward? I mean, at the moment HOT translates update_policy to UpdatePolicy but maybe we get rid of this translation at some point.","commit_id":"5f512031cdac9e60dc71dc2e6403be75c26de46e"},{"author":{"_account_id":7193,"name":"Thomas Spatzier","email":"thomas.spatzier@icloud.com","username":"thomasspatzier"},"change_message_id":"425dbfdf2b6a28c6b60462b7e6f060e87b3805be","unresolved":false,"context_lines":[{"line_number":527,"context_line":"        if attr \u003d\u003d self.METADATA:"},{"line_number":528,"context_line":"            return self.stack.parent_resource.metadata"},{"line_number":529,"context_line":"        elif attr \u003d\u003d self.UPDATE_POLICY:"},{"line_number":530,"context_line":"            up \u003d self.stack.parent_resource.t.get(\u0027UpdatePolicy\u0027, {})"},{"line_number":531,"context_line":"            return function.resolve(up)"},{"line_number":532,"context_line":"        elif attr \u003d\u003d self.DELETION_POLICY:"},{"line_number":533,"context_line":"            dp \u003d self.stack.parent_resource.t.get(\u0027DeletionPolicy\u0027, \u0027Delete\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F9%2B6M%3D","line":530,"in_reply_to":"AAAAWH%2F%2BAmg%3D","updated":"2014-03-31 19:06:25.000000000","message":"Got it, thanks. Looking forward to this wonderful future ;-)","commit_id":"5f512031cdac9e60dc71dc2e6403be75c26de46e"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"3cb88c6009db26cce9d8988cd33987457009bbba","unresolved":false,"context_lines":[{"line_number":527,"context_line":"        if attr \u003d\u003d self.METADATA:"},{"line_number":528,"context_line":"            return self.stack.parent_resource.metadata"},{"line_number":529,"context_line":"        elif attr \u003d\u003d self.UPDATE_POLICY:"},{"line_number":530,"context_line":"            up \u003d self.stack.parent_resource.t.get(\u0027UpdatePolicy\u0027, {})"},{"line_number":531,"context_line":"            return function.resolve(up)"},{"line_number":532,"context_line":"        elif attr \u003d\u003d self.DELETION_POLICY:"},{"line_number":533,"context_line":"            dp \u003d self.stack.parent_resource.t.get(\u0027DeletionPolicy\u0027, \u0027Delete\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F%2BAmg%3D","line":530,"in_reply_to":"AAAAWH%2F%2BGpM%3D","updated":"2014-03-31 15:23:39.000000000","message":"When you use the HOT function, it looks like this:\n\n  {resource_facade: update_policy}\n\nso attr \u003d\u003d \u0027update_policy\u0027. That won\u0027t work for getting the update policy from the parent stack, since even if the parent stack is a HOT template (which can\u0027t be assumed) it will have been translated to \u0027UpdatePolicy\u0027 as you mentioned.\n\nIn the future, we will have an actual API for this and we\u0027ll be able to call:\n\n  self.stack.parent_resource.t.update_policy()\n\nand get the Right Thing. But that\u0027s for the future :)","commit_id":"5f512031cdac9e60dc71dc2e6403be75c26de46e"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"fda7797521f5211129d02885bdf06cadc696fd78","unresolved":false,"context_lines":[{"line_number":530,"context_line":"            up \u003d self.stack.parent_resource.t.get(\u0027UpdatePolicy\u0027, {})"},{"line_number":531,"context_line":"            return function.resolve(up)"},{"line_number":532,"context_line":"        elif attr \u003d\u003d self.DELETION_POLICY:"},{"line_number":533,"context_line":"            dp \u003d self.stack.parent_resource.t.get(\u0027DeletionPolicy\u0027, \u0027Delete\u0027)"},{"line_number":534,"context_line":"            return function.resolve(dp)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAWH%2F96iY%3D","line":533,"updated":"2014-04-01 08:54:16.000000000","message":"Did you mean to use hard-coded strings instead of the constants?\n\nAlso, would this work if you had a provider template (for example one defined by the deployer) defined in one of the CFN template formats, then the user tried to reference them from a parent HOT template?","commit_id":"7cb7236ff01a9c10881d27e3bade44279cc3c77c"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"3f6e4831090d1aa25a8ef2f93e2bedce144db908","unresolved":false,"context_lines":[{"line_number":530,"context_line":"            up \u003d self.stack.parent_resource.t.get(\u0027UpdatePolicy\u0027, {})"},{"line_number":531,"context_line":"            return function.resolve(up)"},{"line_number":532,"context_line":"        elif attr \u003d\u003d self.DELETION_POLICY:"},{"line_number":533,"context_line":"            dp \u003d self.stack.parent_resource.t.get(\u0027DeletionPolicy\u0027, \u0027Delete\u0027)"},{"line_number":534,"context_line":"            return function.resolve(dp)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAWH%2F93rg%3D","line":533,"in_reply_to":"AAAAWH%2F96iY%3D","updated":"2014-04-01 15:05:10.000000000","message":"Yes, and yes :)\n\nSee discussion with Thomas on the previous patch set ;)","commit_id":"7cb7236ff01a9c10881d27e3bade44279cc3c77c"}]}
