cloudstack-cloudmonkey icon indicating copy to clipboard operation
cloudstack-cloudmonkey copied to clipboard

Auto-complete not working for 'id' param in update storagecapabilities

Open sureshanaparti opened this issue 3 years ago • 4 comments

Auto-complete not working for 'id' param in update storagecapabilities

Tested with CloudMonkey 6.2.0 (build: 8aae61e).

(cloudcmk) > update storagecapabilities 
filter= id= 
(cloudcmk) > update storagecapabilities id=

sureshanaparti avatar Sep 30 '21 05:09 sureshanaparti

@sureshanaparti We could probably look at improving this in the next release of cmk - however, the reason behind this behavior is that when CloudMonkey tries to find the most appropriate list API that can be used to populate the values of id - it finds more than one, and hence, doesn't autocomplete the argument's values. For example: this is what is seen in debug mode:

(test) 🐱 > update storagecapabilities id=l[debug] Possible related noun for the arg: storagecapabilitiess and type: uuid
[debug] Finding possible API that have: id related APIs: [cancelStorageMaintenance createStoragePool enableStorageMaintenance findStoragePoolsForMigration syncStoragePool updateStorageCapabilities]
[debug] Found possible API: listCAProviders
[debug] Found possible API: listHostHAProviders
[debug] Found possible API: listNetworkServiceProviders
[debug] Found possible API: listStorageProviders
(test) 🐱 > update storagecapabilities id=

Pearl1594 avatar Sep 30 '21 05:09 Pearl1594

@sureshanaparti was this working with previous versions of cmk, say 6.1.0?

rohityadavcloud avatar Sep 30 '21 05:09 rohityadavcloud

No @rhtyd didn't work in the older versions too:

[root@ref-trl-1725-v-M7-pearl-dsilva-mgmt1 ~]# cmk
Apache CloudStack 🐵 CloudMonkey 6.0.0
Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues

(localcloud) SBCM5> > 
(localcloud) SBCM5> > 
(localcloud) SBCM5> > update storagecapabilities id=


Pearl1594 avatar Sep 30 '21 05:09 Pearl1594

@sureshanaparti was this working with previous versions of cmk, say 6.1.0?

doesn't work with 6.1.0 @rhtyd

sureshanaparti avatar Sep 30 '21 05:09 sureshanaparti