681d6dc2de
The "flavor show" command could not show a private flavor by flavor name becauce it could not find a private flavor by flavor name. In "until.find_resource(parsed_args.flavor)", If parsed_args.falvor is a name of a flavor, "flavors.find(name=parsed_args.flavor)"will be called to find a flavor.But the default value of "is_public" is "Ture" in "flavors.find()" so that we can only find public flavors.If we want to find all flaovrs by flavor name,we should add "is_public=None" in "flavors.find()". So I tried to change "until.find_resource(parsed_args.flavor)" to "until.find_resource(parsed_args.flavor, is_public=None)", but then I could not find any flavor by flavor id because "is_public" is an unexpected argument of "flavors.get()" in "until.find_resource()". In this case,I think "until.find_resource()" can not find a private flavor properly,and we should combine "manager.get(flavor.id)" and "manager.find(name=flavor.name, is_public=None)" by ourselve to find a flavor. Also,this bug affects other flavor commands like "flavor set/unset/delete",so I fix them in this patch too. Change-Id: I4a4ed7b0a2f522ee04d1c3270afcda7064285c39 Closes-Bug: #1575478 |
||
---|---|---|
.. | ||
.placeholder | ||
add-disable-reason-6e0f28459a09a60d.yaml | ||
add-ksa-7f0795157d93a898.yaml | ||
add-osprofiler-support-adf5286daf220914.yaml | ||
add-port-commands-a3580662721a6312.yaml | ||
add-port-delete-command-4789d3881b186cfc.yaml | ||
add-port-show-command-de0a599017189a21.yaml | ||
add-restore-server-d8c73e0e83df17dd.yaml | ||
add-server-group-command-fde165df53216726.yaml | ||
add-subnet-list-command-970f4b397469bdc6.yaml | ||
allow-custom-logging-12d55f8ed859ff8e.yaml | ||
bug-1475831-3caafd724d4ed644.yaml | ||
bug-1486597-857e20262c038514.yaml | ||
bug-1516661-757ef629f899cca3.yaml | ||
bug-1517134-9efecb257910989c.yaml | ||
bug-1517386-1c0aad8e3203b02b.yaml | ||
bug-1519181-932c1ff07ef16666.yaml | ||
bug-1519502-d534db6c18adef20.yaml | ||
bug-1519502-f72236598d14d350.yaml | ||
bug-1519503-978a68a54819dbbc.yaml | ||
bug-1519510-3cde4643b33ebb7a.yaml | ||
bug-1519511-65b8901ae6ea2e63.yaml | ||
bug-1519511-65d8d21dde31e5e2.yaml | ||
bug-1519511-74bab0e0d32db043.yaml | ||
bug-1519512-48d98f09e44220a3.yaml | ||
bug-1519512-65df002102b7fb99.yaml | ||
bug-1519512-4231ac6014109142.yaml | ||
bug-1519512-48624c5a32432a47.yaml | ||
bug-1519512-d20f44aca1f9e9b9.yaml | ||
bug-1520003-505af921c8afffc9.yaml | ||
bug-1520115-0367e1c8917dc912.yaml | ||
bug-1520541-44d45e4693089c03.yaml | ||
bug-1521492-8cde2601591a8c78.yaml | ||
bug-1521492-89b972c6362940a5.yaml | ||
bug-1522969-63abf273c6e71a07.yaml | ||
bug-1524456-9967fac653c91cb2.yaml | ||
bug-1525805-122e6ce0c3cd4945.yaml | ||
bug-1527833-42cde11d28b09ac3.yaml | ||
bug-1531360-0f5c62d18088e5b5.yaml | ||
bug-1532945-1a5485b8d0ebddb8.yaml | ||
bug-1534202-1ba78f0bb744961f.yaml | ||
bug-1538372-ef3a30298357f972.yaml | ||
bug-1540656-f7b7b7e3feef2440.yaml | ||
bug-1540988-17841cfd5accf7f5.yaml | ||
bug-1542359-181d28db21a2358a.yaml | ||
bug-1542362-ddad607f6d3025f0.yaml | ||
bug-1542364-5d1e93cfd24f0b65.yaml | ||
bug-1543214-959aee7830db2b0d.yaml | ||
bug-1543226-7d885ecaa3715415.yaml | ||
bug-1543672-bad2fc4c6c8f3125.yaml | ||
bug-1544586-0e6ca9a09dac0726.yaml | ||
bug-1544586-0fe19a567d3e31fc.yaml | ||
bug-1544587-ec3ca453c1340b4e.yaml | ||
bug-1544589-b9f669ef71aa5e57.yaml | ||
bug-1544590-8cf42954e28c2f42.yaml | ||
bug-1545537-7a66219d263bb1e5.yaml | ||
bug-1545537-12bbf01d2280dd2f.yaml | ||
bug-1545609-bdc1efc17214463b.yaml | ||
bug-1546065-41d09ffbd8606513.yaml | ||
bug-1554877-7f8479791eab45b7.yaml | ||
bug-1554889-32ba8d4bfb0f5f3d.yaml | ||
bug-1556929-edd78cded88ecdc9.yaml | ||
bug-1559866-733988f5dd5b07bb.yaml | ||
bug-1560157-bce572f58b43efa1.yaml | ||
bug-1565112-e0cea9bfbcab954f.yaml | ||
bug-1569480-c52e330548bfbd78.yaml | ||
bug-1571812-49cdce4df5f3d481.yaml | ||
bug-1572733-874b37a7fa8292d0.yaml | ||
bug-1575478-5a0a923c3a32f96a.yaml | ||
bug-1575624-87957ff60ad661a6.yaml | ||
list_role_assignment_names-0db89f50259d4be2.yaml | ||
make-snapshot-and-backup-name-optional-01971d33640ef1c8.yaml | ||
no-project-usage-list-e88eb49aa2e96cf7.yaml | ||
recursive-container-delete-983361aa9c35ffed.yaml | ||
router-port-add-0afe7392c080bcb8.yaml | ||
router-remove-port-058078c93819b0f4.yaml | ||
router-subnet-469d095ae0bac884.yaml | ||
server-changes-3962541b6ebdbbd8.yaml | ||
subnet-set-bbc26ecc16929302.yaml | ||
volume_service-5e352a71dfbc828d.yaml |