commit 46ef634de8c6867fa0d18fb4c3618cfca8516038
Author: Douglas Mendizábal <email address hidden>
Date: Mon Mar 9 16:45:30 2015 -0500
Deprecate setting the payload type and encoding
Deprecate manually setting the payload_content_type and
payload_content_encoding properties of a secret. With this CR a user of
the client only needs to provide the payload, and the client will figure
out what the correct payload_content_type and payload_content_encoding
values should be.
Setting these properties for the user lets us avoid a lot of weird
behaviors such as the one described in Bug #1419166, and also lets us
avoid errors that happen when a user mismatches the payload and an
incorrect content type.
In the interest of backwards compatibility, these properties are still
usable, but will log deprecation warnings. They should be removed in a
future version after current users have had enough time to update their
code bases.
Reviewed: https:/ /review. openstack. org/162777 /git.openstack. org/cgit/ openstack/ python- barbicanclient/ commit/ ?id=46ef634de8c 6867fa0d18fb4c3 618cfca8516038
Committed: https:/
Submitter: Jenkins
Branch: master
commit 46ef634de8c6867 fa0d18fb4c3618c fca8516038
Author: Douglas Mendizábal <email address hidden>
Date: Mon Mar 9 16:45:30 2015 -0500
Deprecate setting the payload type and encoding
Deprecate manually setting the payload_ content_ type and content_ encoding properties of a secret. With this CR a user of content_ type and payload_ content_ encoding
payload_
the client only needs to provide the payload, and the client will figure
out what the correct payload_
values should be.
Setting these properties for the user lets us avoid a lot of weird
behaviors such as the one described in Bug #1419166, and also lets us
avoid errors that happen when a user mismatches the payload and an
incorrect content type.
In the interest of backwards compatibility, these properties are still
usable, but will log deprecation warnings. They should be removed in a
future version after current users have had enough time to update their
code bases.
Change-Id: Ibfe3ad42e11bd8 3c002d0f1b69fb8 a323a7b6f3d
Closes-Bug: #1419166