Skip to content

Commit 0e3c069

Browse files
committed
added a comment to hcloud change.
1 parent 990a5b5 commit 0e3c069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/services/hcloud/util/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func ServerIDFromProviderID(providerID *string) (int64, error) {
5656
return 0, ErrInvalidProviderID
5757
}
5858

59+
// Check that HCloud ProviderID starts with "hcloud"
5960
if stringParts[0] != "hcloud" {
6061
return 0, ErrInvalidProviderID
6162
}

0 commit comments

Comments
 (0)