Skip to content

Commit c2b5bee

Browse files
committed
Use ReplaceAll
1 parent b4bab6d commit c2b5bee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

serverscom/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func parseProviderID(providerID string) (string, string, error) {
4444
return "", "", fmt.Errorf("error splitting providerID: %s", providerID)
4545
}
4646

47-
return strings.Replace(matches[1], "_", "-", 0), matches[2], nil
47+
return strings.ReplaceAll(matches[1], "_", "-"), matches[2], nil
4848
}
4949

5050
func collectCloudInstanceAddresses(cloudInstance *cli.CloudComputingInstance) []v1.NodeAddress {

0 commit comments

Comments
 (0)