diff --git a/pkg/api/openshiftcluster.go b/pkg/api/openshiftcluster.go index 5bb14ef18a6..a3ae63ab88b 100644 --- a/pkg/api/openshiftcluster.go +++ b/pkg/api/openshiftcluster.go @@ -531,8 +531,8 @@ const ( ) type VMSizeStruct struct { - CoreCount int - Family string + CoreCount int `json:"coreCount,omitempty"` + Family string `json:"family,omitempty"` } var ( diff --git a/pkg/portal/cluster/nodes.go b/pkg/portal/cluster/nodes.go index df602dd91c9..c28410a8c67 100644 --- a/pkg/portal/cluster/nodes.go +++ b/pkg/portal/cluster/nodes.go @@ -27,15 +27,15 @@ type Taint struct { } type MachineResources struct { - CPU string - StorageVolume string - Memory string - Pods string + CPU string `json:"cpu"` + StorageVolume string `json:"storageVolume"` + Memory string `json:"memory"` + Pods string `json:"pods"` } type Volume struct { - Name string - Path string + Name string `json:"name"` + Path string `json:"path"` } type NodeInformation struct { diff --git a/pkg/util/azureclient/applens/applens_client.go b/pkg/util/azureclient/applens/applens_client.go index e44bc07e774..f9071a29532 100644 --- a/pkg/util/azureclient/applens/applens_client.go +++ b/pkg/util/azureclient/applens/applens_client.go @@ -198,7 +198,7 @@ func (c *Client) executeAndEnsureSuccessResponse(request *policy.Request) (*http return nil, err } - successResponse := (response.StatusCode >= 200 && response.StatusCode < 300) || response.StatusCode == 304 + successResponse := (response.StatusCode >= 200 && response.StatusCode < 300) || response.StatusCode == http.StatusNotModified if successResponse { return response, nil }