mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #3421 from svanharmelen/f-cloudstack-unlimited
provider/cloudstack: fix regexp
This commit is contained in:
commit
040b9dc4b1
@ -121,7 +121,7 @@ func retrieveTemplateID(cs *cloudstack.CloudStackClient, zoneid, value string) (
|
|||||||
|
|
||||||
// ID can be either a UUID or a UnlimitedResourceID
|
// ID can be either a UUID or a UnlimitedResourceID
|
||||||
func isID(id string) bool {
|
func isID(id string) bool {
|
||||||
re := regexp.MustCompile(`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|-1$`)
|
re := regexp.MustCompile(`^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|-1)$`)
|
||||||
return re.MatchString(id)
|
return re.MatchString(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user