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": {
|
"name_regex": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ValidateFunc: validation.ValidateRegexp,
|
ValidateFunc: validation.StringIsValidRegExp,
|
||||||
ConflictsWith: []string{"name"},
|
ConflictsWith: []string{"name"},
|
||||||
},
|
},
|
||||||
"region": {
|
"region": {
|
||||||
|
|
|
@ -26,7 +26,7 @@ func dataSourceDigitalOceanVolumeSnapshot() *schema.Resource {
|
||||||
"name_regex": {
|
"name_regex": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ValidateFunc: validation.ValidateRegexp,
|
ValidateFunc: validation.StringIsValidRegExp,
|
||||||
ConflictsWith: []string{"name"},
|
ConflictsWith: []string{"name"},
|
||||||
},
|
},
|
||||||
"region": {
|
"region": {
|
||||||
|
|
Loading…
Reference in New Issue