File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ func (c *client) DestroyVMInstance(csMachine *infrav1.CloudStackMachine) error {
216
216
p := c .cs .VirtualMachine .NewDestroyVirtualMachineParams (* csMachine .Spec .InstanceID )
217
217
p .SetExpunge (true )
218
218
_ , err := c .cs .VirtualMachine .DestroyVirtualMachine (p )
219
- if err != nil && strings .Contains (err .Error (), "Unable to find UUID for id " ) {
219
+ if err != nil && strings .Contains (err .Error (), "unable to find UUID for id " ) {
220
220
// VM doesn't exist. So the desired state is in effect. Our work is done here.
221
221
return nil
222
222
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func (c *client) ResolveNetwork(csCluster *infrav1.CloudStackCluster) (retErr er
61
61
func (c * client ) GetOrCreateNetwork (csCluster * infrav1.CloudStackCluster ) (retErr error ) {
62
62
if retErr = c .ResolveNetwork (csCluster ); retErr == nil { // Found network.
63
63
return nil
64
- } else if ! strings .Contains (retErr .Error (), "No match found" ) { // Some other error.
64
+ } else if ! strings .Contains (retErr .Error (), "no match found" ) { // Some other error.
65
65
return retErr
66
66
} // Network not found.
67
67
@@ -147,7 +147,7 @@ func (c *client) AssociatePublicIPAddress(csCluster *infrav1.CloudStackCluster)
147
147
func (c * client ) OpenFirewallRules (csCluster * infrav1.CloudStackCluster ) (retErr error ) {
148
148
p := c .cs .Firewall .NewCreateEgressFirewallRuleParams (csCluster .Status .NetworkID , NetworkProtocolTCP )
149
149
_ , retErr = c .cs .Firewall .CreateEgressFirewallRule (p )
150
- if retErr != nil && strings .Contains (retErr .Error (), "There is already" ) { // Already a firewall rule here.
150
+ if retErr != nil && strings .Contains (retErr .Error (), "there is already" ) { // Already a firewall rule here.
151
151
retErr = nil
152
152
}
153
153
return retErr
You can’t perform that action at this time.
0 commit comments