Skip to content

Commit 51d5dfd

Browse files
authored
Improve UT coverage for IBMPowerVSCluster controller (#2031)
* Add UT for reconcileVPCResource function * Add test for reconcile function
1 parent c39857b commit 51d5dfd

File tree

3 files changed

+885
-13
lines changed

3 files changed

+885
-13
lines changed

cloud/scope/powervs_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ func (s *PowerVSClusterScope) ReconcileVPCSecurityGroups() error {
12811281

12821282
sg, ruleIDs, err := s.validateVPCSecurityGroup(securityGroup)
12831283
if err != nil {
1284-
return fmt.Errorf("failed to validate existing security group: %w", err)
1284+
return fmt.Errorf("failed to validate existing security group: %s", err)
12851285
}
12861286
if sg != nil {
12871287
s.V(3).Info("VPC security group already exists", "name", *sg.Name)

0 commit comments

Comments
 (0)