Fix error in CLI 'manila list' with sorting key 'availability_zone'.
CLI 'manila list --sort-key availability_zone' return http 400 code,
and error message 'Wrong sorting key provided'.
The cause is that sortble key name in sqlAlchemy model field is
'availability_zone_id' , not 'availability_zone'. So we need a
translation in CLI implement.
Closes-Bug: #1920888
Change-Id: Ied983d85ca08a123b78bf8b05085fad8fe5bc2c5
(cherry picked from commit 69031b558d600e507b86dc1ee0a7087ac9436219)
Reviewed: https:/ /review. opendev. org/c/openstack /python- manilaclient/ +/792289 /opendev. org/openstack/ python- manilaclient/ commit/ c338a6c2d02bf94 e46904e5998ebdf 1a357d2866
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit c338a6c2d02bf94 e46904e5998ebdf 1a357d2866
Author: czl389 <czl389@163.com>
Date: Wed Mar 24 14:10:15 2021 +0800
Fix error in CLI 'manila list' with sorting key 'availability_ zone'.
CLI 'manila list --sort-key availability_zone' return http 400 code,
and error message 'Wrong sorting key provided'.
The cause is that sortble key name in sqlAlchemy model field is ty_zone_ id' , not 'availability_ zone'. So we need a
'availabili
translation in CLI implement.
Closes-Bug: #1920888 23b78bf8b05085f ad8fe5bc2c5 07b86dc1ee0a708 7ac9436219)
Change-Id: Ied983d85ca08a1
(cherry picked from commit 69031b558d600e5