File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,10 @@ func (c *client) AssociatePublicIPAddress(csCluster *infrav1.CloudStackCluster)
180
180
181
181
func (c * client ) DisassociatePublicIPAddress (csCluster * infrav1.CloudStackCluster ) (retErr error ) {
182
182
// Remove the CAPC creation tag, so it won't be there the next time this address is associated.
183
- c .DeleteCreatedByCAPCTag (ResourceTypeIPAddress , csCluster .Status .PublicIPID )
183
+ retErr = c .DeleteCreatedByCAPCTag (ResourceTypeIPAddress , csCluster .Status .PublicIPID )
184
+ if retErr != nil {
185
+ return retErr
186
+ }
184
187
185
188
p := c .cs .Address .NewDisassociateIpAddressParams (csCluster .Status .PublicIPID )
186
189
_ , retErr = c .cs .Address .DisassociateIpAddress (p )
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ var _ = Describe("Network", func() {
87
87
createTagsParams := & cloudstack.CreateTagsParams {}
88
88
rs .EXPECT ().NewListTagsParams ().Return (listTagsParams )
89
89
rs .EXPECT ().ListTags (listTagsParams ).Return (& cloudstack.ListTagsResponse {}, nil )
90
- rs .EXPECT ().NewCreateTagsParams ([]string {networkID }, "network" , gomock .Any ()).Return (createTagsParams )
90
+ rs .EXPECT ().NewCreateTagsParams ([]string {networkID }, cloud . ResourceTypeNetwork , gomock .Any ()).Return (createTagsParams )
91
91
rs .EXPECT ().CreateTags (createTagsParams ).Return (& cloudstack.CreateTagsResponse {}, nil )
92
92
}
93
93
You can’t perform that action at this time.
0 commit comments