validation.ValidateRegexp has been deprecated in favor of validation.StringIsValidRegExp
This commit is contained in:
parent
c722e227fd
commit
c6fba78a84
|
@ -23,7 +23,7 @@ func dataSourceDigitalOceanDropletSnapshot() *schema.Resource {
|
|||
"name_regex": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ValidateFunc: validation.ValidateRegexp,
|
||||
ValidateFunc: validation.StringIsValidRegExp,
|
||||
ConflictsWith: []string{"name"},
|
||||
},
|
||||
"region": {
|
||||
|
|
|
@ -26,7 +26,7 @@ func dataSourceDigitalOceanVolumeSnapshot() *schema.Resource {
|
|||
"name_regex": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ValidateFunc: validation.ValidateRegexp,
|
||||
ValidateFunc: validation.StringIsValidRegExp,
|
||||
ConflictsWith: []string{"name"},
|
||||
},
|
||||
"region": {
|
||||
|
|
Loading…
Reference in New Issue