cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

listResourceDetails: ID is not UUID, but DB ID

Open resmo opened this issue 8 years ago • 3 comments

ISSUE TYPE
  • Enhancement
  • Bug
COMPONENT NAME
API
CLOUDSTACK VERSION
4.11
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

The respone of listResourceDetails includes an ID of the primary field not the UUID

STEPS TO REPRODUCE
 $ cs listResourceDetails resourcetype=uservm resourceid=d949e443-9bc8-4399-9e09-842bbb395cae --region=simulator     
EXPECTED RESULTS
{
  "count": 3, 
  "resourcedetail": [
    {
      "fordisplay": true, 
      "key": "foo", 
      "resourceid": "d949e443-9bc8-4399-9e09-842bbb395cae", 
      "resourcetype": "UserVm", 
      "value": "bar"
    }, 
ACTUAL RESULTS
{
  "count": 3, 
  "resourcedetail": [
    {
      "fordisplay": true, 
      "key": "foo", 
      "resourceid": "5", 
      "resourcetype": "UserVm", 
      "value": "bar"
    }, 

resmo avatar Apr 03 '18 22:04 resmo

is there a PR planned for this? if not i'll mark it 4.12

DaanHoogland avatar Jun 04 '18 11:06 DaanHoogland

@resmo I can confirm this behavior.

@DaanHoogland @rhtyd I will work on a fix for this and create a PR.

dhlaluku avatar Jul 03 '18 18:07 dhlaluku

@resmo , @rhtyd , @DaanHoogland , @dhlaluku - I've pushed a fix for this and a pull request is open for review. Thanks!

anuragaw avatar Dec 18 '18 11:12 anuragaw