heat/heat
Paul Bourke 73fd6c3cbb Deprecate 'attachments' in favor of 'attachments_list'
The 'attachments' attribute of OS::Cinder::Volume is being processed by
Heat as a string rather than the native list of dicts that come from
Cinder. This makes it hard to consume the data downstream.

This change marks the 'attachments' attribute deprecated in the pike
release in favor of 'attachments_list', which has the correct type of LIST.

An example of where this change is useful is in python-openstackclient;
using the new attribute changes the output of
'openstack stack output show mystack' from:

  ...
  output_value:
    - u"[{u'server_id': u'0f5731c1-da17-4209-a2ef-270c7056f9a3', ... }]"
  ...

to:

  ...
  output_value:
    - attached_at: '2017-03-31T14:05:28.000000'
    - attachment_id: 19436dc5-233d-49cc-a719-f6a92bff466c
    ...
  ...

Change-Id: I52746f87a3872b18e7ae9a7296d6abd2c12c8b9a
Closes-Bug: #1679087
2017-04-12 10:41:28 +01:00
..
api Remove log translations 2017-03-25 17:11:50 +08:00
cloudinit Validate that python3 is ready for loguserdata 2016-08-26 11:49:30 +00:00
cmd Remove log translations 2017-03-25 17:11:50 +08:00
common Remove log translations 2017-03-25 17:11:50 +08:00
db Remove log translations 2017-03-25 17:11:50 +08:00
engine Deprecate 'attachments' in favor of 'attachments_list' 2017-04-12 10:41:28 +01:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Remove log translations 2017-03-25 17:11:50 +08:00
locale Imported Translations from Zanata 2017-03-23 10:25:34 +00:00
objects Remove log translations 2017-03-25 17:11:50 +08:00
rpc Merge "Use exception_filter in RPC client" 2017-03-29 13:46:53 +00:00
scaling Remove log translations 2017-03-25 17:11:50 +08:00
tests Deprecate 'attachments' in favor of 'attachments_list' 2017-04-12 10:41:28 +01:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00