Fix decoder path and add transfer commands

the file path to the decoder is better resolved
with the module path.

share transfer commands exist in the manila
shell, it'll be helpful to show the OSC translations
to these as well.

Implements: bp/openstack-client-support
Change-Id: I85d7ebd5c5c34c95402c0ea95f358bef91d26657
This commit is contained in:
Goutham Pacha Ravi 2023-09-11 17:09:31 -07:00
parent a0781399bf
commit 946c11373f
2 changed files with 8 additions and 2 deletions

View File

@ -115,6 +115,11 @@ share-server-reset-state,share server set --status,Explicitly update the state o
share-server-reset-task-state,share server set --task-state,Explicitly update the task state of a share share-server-reset-task-state,share server set --task-state,Explicitly update the task state of a share
share-server-show,share server show,Show share server info share-server-show,share server show,Show share server info
share-server-unmanage,share server abandon,Unmanage share server share-server-unmanage,share server abandon,Unmanage share server
share-transfer-accept,share transfer accept,Accepts a share transfer.
share-transfer-create,share transfer create,Creates a share transfer.
share-transfer-delete,share transfer delete,Remove one or more transfers
share-transfer-list,share transfer list,Lists all transfers
share-transfer-show,share transfer show,Delete a transfer
show,share show,Show details about a NAS share show,share show,Show details about a NAS share
shrink,share resize,Decreases the size of an existing share shrink,share resize,Decreases the size of an existing share
snapshot-access-allow,share snapshot access create,Allow read only access to a snapshot snapshot-access-allow,share snapshot access create,Allow read only access to a snapshot

1 manila command openstack command command description
115 share-server-reset-task-state share server set --task-state Explicitly update the task state of a share
116 share-server-show share server show Show share server info
117 share-server-unmanage share server abandon Unmanage share server
118 share-transfer-accept share transfer accept Accepts a share transfer.
119 share-transfer-create share transfer create Creates a share transfer.
120 share-transfer-delete share transfer delete Remove one or more transfers
121 share-transfer-list share transfer list Lists all transfers
122 share-transfer-show share transfer show Delete a transfer
123 show share show Show details about a NAS share
124 shrink share resize Decreases the size of an existing share
125 snapshot-access-allow share snapshot access create Allow read only access to a snapshot

View File

@ -610,8 +610,9 @@ class OpenStackManilaShell(object):
osprofiler_profiler.init(options.profile) osprofiler_profiler.init(options.profile)
try: try:
decoder_path = os.path.abspath( decoder_path = (
'manilaclient/osc/v2/data/manila.csv' '%s/%s' % (os.path.dirname(os.path.abspath(__file__)),
'osc/v2/data/manila.csv')
) )
with open(decoder_path) as f: with open(decoder_path) as f:
decoder_data = { decoder_data = {