)]}'
{"openstack/orchestration/v1/_proxy.py":[{"author":{"_account_id":8257,"name":"Brian Curtin","email":"brian@python.org","username":"briancurtin"},"change_message_id":"163806416489fb227bff48de0b09f389bbe7be92","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        :returns: The results of stack creation dry run"},{"line_number":41,"context_line":"        :rtype: :class:`~openstack.orchestration.v1.stack.Stack`"},{"line_number":42,"context_line":"        \"\"\""},{"line_number":43,"context_line":"        return self._create(_stack.StackPreview, **attrs)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def find_stack(self, name_or_id, ignore_missing\u003dTrue):"},{"line_number":46,"context_line":"        \"\"\"Find a single stack"}],"source_content_type":"text/x-python","patch_set":4,"id":"da6ed579_441091a8","line":43,"range":{"start_line":43,"start_character":35,"end_line":43,"end_character":47},"updated":"2016-01-13 18:24:48.000000000","message":"What I meant with a previous comment was that I think we should have create_stack explicitly take a preview argument, and when preview\u003dTrue call _create as you\u0027re doing here.\n\nIt would be similar to how this call does it: http://git.openstack.org/cgit/openstack/python-openstacksdk/tree/openstack/compute/v2/_proxy.py#n107\n\nI don\u0027t think we should have a separate method for preview_stack.","commit_id":"162f05c19acd97a3a9b7a110b815be98eae61224"}],"openstack/orchestration/v1/stack.py":[{"author":{"_account_id":8246,"name":"Qiming Teng","email":"tengqm@outlook.com","username":"tengqm"},"change_message_id":"23dd21582f59ae0d760ec5129f5bdc35745a728a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        if body.pop(\u0027preview\u0027, False):"},{"line_number":83,"context_line":"            url \u003d cls.base_path + \u0027/preview\u0027"},{"line_number":84,"context_line":"        else:"},{"line_number":85,"context_line":"            url \u003d cls.base_path"},{"line_number":86,"context_line":"        resp \u003d session.post(url, endpoint_filter\u003dcls.service, json\u003dbody)"},{"line_number":87,"context_line":"        resp \u003d resp.json()"},{"line_number":88,"context_line":"        return resp[cls.resource_key]"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_a5b4a434","line":85,"updated":"2015-12-29 13:05:45.000000000","message":"better add test case for this as well.","commit_id":"0ca98b9caab254711a838faa50a0180e7e743f73"},{"author":{"_account_id":8736,"name":"Terry Howe","email":"terrylhowe@gmail.com","username":"terrylhowe"},"change_message_id":"ce6d024742e58cdcb32d0af51b660a6794178918","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        body \u003d attrs.copy()"},{"line_number":80,"context_line":"        body.pop(\u0027id\u0027, None)"},{"line_number":81,"context_line":"        body.pop(\u0027name\u0027, None)"},{"line_number":82,"context_line":"        if body.pop(\u0027preview\u0027, False):"},{"line_number":83,"context_line":"            url \u003d cls.base_path + \u0027/preview\u0027"},{"line_number":84,"context_line":"        else:"},{"line_number":85,"context_line":"            url \u003d cls.base_path"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_fcb2184b","line":82,"updated":"2016-01-06 18:00:34.000000000","message":"seems like the stack resource should just have a preview method that is like the create method, but different url","commit_id":"d85c243c63b4a55aea144529ef8a814053083380"},{"author":{"_account_id":8257,"name":"Brian Curtin","email":"brian@python.org","username":"briancurtin"},"change_message_id":"50134f42b27e1654357516a9882e015432122d87","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        body \u003d attrs.copy()"},{"line_number":80,"context_line":"        body.pop(\u0027id\u0027, None)"},{"line_number":81,"context_line":"        body.pop(\u0027name\u0027, None)"},{"line_number":82,"context_line":"        if body.pop(\u0027preview\u0027, False):"},{"line_number":83,"context_line":"            url \u003d cls.base_path + \u0027/preview\u0027"},{"line_number":84,"context_line":"        else:"},{"line_number":85,"context_line":"            url \u003d cls.base_path"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_1c95ac85","line":82,"in_reply_to":"fa69d971_fcb2184b","updated":"2016-01-06 18:05:18.000000000","message":"This could be done similar to how we have Server and ServerDetail in the compute.v2 namespace -- http://git.openstack.org/cgit/openstack/python-openstacksdk/tree/openstack/compute/v2/server.py\n\nFor example, say we do the same thing there and have a Stack and a StackPreview resource, then the create_stack proxy method could take the preview\u003dbool arg and then send in Stack or StackPreview to self._create","commit_id":"d85c243c63b4a55aea144529ef8a814053083380"}]}
