Skip to content

Commit

Permalink
patch - fixing validation for 'env' field (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrNovo authored Jan 31, 2024
1 parent acab86c commit da2c27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,6 @@ Bug fixing:
#### resource/coralogix_team
* fixing log message when for permission denied error.

## Release 1.11.2
## Release 1.11.3
Bug fixing:
* adding validation for `env` field.
4 changes: 2 additions & 2 deletions coralogix/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ func (p *coralogixProvider) Schema(_ context.Context, _ provider.SchemaRequest,
stringvalidator.OneOf(validEnvs...),
stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName("domain")),
},
MarkdownDescription: fmt.Sprintf("The Coralogix API environment. can be one of %q. environment variable 'CORALOGIX_ENV' can be defined instead.", validEnvs),
Description: fmt.Sprintf("The Coralogix API environment. can be one of %q. environment variable 'CORALOGIX_ENV' can be defined instead.", validEnvs),
},
"domain": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName("domain")),
},
MarkdownDescription: "The Coralogix domain. Conflict With 'env'. environment variable 'CORALOGIX_DOMAIN' can be defined instead.",
Description: "The Coralogix domain. Conflict With 'env'. environment variable 'CORALOGIX_DOMAIN' can be defined instead.",
},
"api_key": schema.StringAttribute{
Optional: true,
Expand Down

0 comments on commit da2c27d

Please sign in to comment.