Skip to content

Commit 2ce1b31

Browse files
committed
Zone and Pod update responses aren't being processed the same as other updates
1 parent 16260d4 commit 2ce1b31

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cloudstack/PodService.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,6 +1830,10 @@ func (s *PodService) UpdatePod(p *UpdatePodParams) (*UpdatePodResponse, error) {
18301830
return nil, err
18311831
}
18321832

1833+
if resp, err = getRawValue(resp); err != nil {
1834+
return nil, err
1835+
}
1836+
18331837
var r UpdatePodResponse
18341838
if err := json.Unmarshal(resp, &r); err != nil {
18351839
return nil, err

cloudstack/ZoneService.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,6 +3691,10 @@ func (s *ZoneService) UpdateZone(p *UpdateZoneParams) (*UpdateZoneResponse, erro
36913691
return nil, err
36923692
}
36933693

3694+
if resp, err = getRawValue(resp); err != nil {
3695+
return nil, err
3696+
}
3697+
36943698
var r UpdateZoneResponse
36953699
if err := json.Unmarshal(resp, &r); err != nil {
36963700
return nil, err

0 commit comments

Comments
 (0)