GET property which name includes resource type prefix
Currently GET call to API to retrieve property details ends with
404 error when property name includes resource type prefix.
This patch extends show method to take filters as a parameter.
If 'resource_type' is included in filters then the prefix of included
resource type is removed from property name. This enables user to look
for property name starting with prefix that comes from associated
resource type.
Reviewed: https:/ /review. openstack. org/121121 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=8b9f9836f8a adf98ff3bcc88de 5622903625e7a0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8b9f9836f8aadf9 8ff3bcc88de5622 903625e7a0
Author: Bartosz Fic <email address hidden>
Date: Wed Oct 8 10:47:31 2014 +0200
GET property which name includes resource type prefix
Currently GET call to API to retrieve property details ends with
404 error when property name includes resource type prefix.
This patch extends show method to take filters as a parameter.
If 'resource_type' is included in filters then the prefix of included
resource type is removed from property name. This enables user to look
for property name starting with prefix that comes from associated
resource type.
Change-Id: I3c4d96fbc9ce15 016631017bf7608 9c338ac3cdc
Closes-Bug: #1367564
DocImpact
Co-Authored-By: Bartosz Fic <email address hidden>
Co-Authored-By: Pawel Koniszewski <email address hidden>