From 17809201f9948a79436028d964e5bdd8fc2a0b42 Mon Sep 17 00:00:00 2001 From: Sergey Shubin svs1370 Date: Fri, 27 Aug 2021 10:02:09 +0300 Subject: [PATCH] Change handling of compute tags in API response --- decort/models_api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decort/models_api.go b/decort/models_api.go index b92164c..7aa08d5 100644 --- a/decort/models_api.go +++ b/decort/models_api.go @@ -245,7 +245,7 @@ type ComputeRecord struct { AccountName string `json:"accountName"` ACLs []UserAclRecord `json:"acl"` Arch string `json:"arch"` - BootDiskSize int `json:"bootdiskSize"` // NOTE: this key is always 0 in compute/get API response + BootDiskSize int `json:"bootdiskSize"` CloneReference int `json:"cloneReference"` Clones []int `json:"clones"` Cpus int `json:"cpus"` @@ -267,7 +267,7 @@ type ComputeRecord struct { RgName string `json:"rgName"` SnapSets []SnapSetRecord `json:"snapSets"` Status string `json:"status"` - Tags []string `json:"tags"` + // Tags []string `json:"tags"` // Tags were reworked since DECORT 3.7.1 TechStatus string `json:"techStatus"` TotalDiskSize int `json:"totalDiskSize"` UpdatedBy string `json:"updatedBy"` @@ -372,7 +372,7 @@ type ComputeGetResp struct { RgName string `json:"rgName"` SnapSets []SnapSetRecord `json:"snapSets"` Status string `json:"status"` - Tags []string `json:"tags"` + // Tags []string `json:"tags"` // Tags were reworked since DECORT 3.7.1 TechStatus string `json:"techStatus"` TotalDiskSize int `json:"totalDiskSize"` UpdatedBy string `json:"updatedBy"`