Skip to content

Commit

Permalink
Correct error message type formatting. ex) '%daw(float64=250) address…
Browse files Browse the repository at this point in the history
…ed' => 250 addressed
  • Loading branch information
powerkimhub committed Oct 5, 2024
1 parent 8add937 commit 0347156
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ func checkSubnetRequireIPRange(subnet armnetwork.Subnet, NodeGroupInfos []irs.No
requireIPCount += float64((maxPodCount + 1) * (NodeGroupInfo.MaxNodeSize))
}
if subnetAvailableCount < requireIPCount {
return errors.New(fmt.Sprintf("The subnet id not large enough to support all node pools. Current available IP address space: %d addressed. Required %d addresses.", subnetAvailableCount, requireIPCount))
return errors.New(fmt.Sprintf("The subnet id not large enough to support all node pools. Current available IP address space: %.0f addressed. Required %.0f addresses.", subnetAvailableCount, requireIPCount))
}
return nil
}
Expand Down

0 comments on commit 0347156

Please sign in to comment.