Skip to content

Commit

Permalink
clean up whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rajagopalans committed Aug 16, 2023
1 parent bc44b4b commit 182ee32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apstra/resource_configlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ func (o *resourceConfiglet) ValidateConfig(ctx context.Context, req resource.Val
if resp.Diagnostics.HasError() {
return
}

// Delay Validation until the involved attributes have a known value.
if config.Generators.IsUnknown() {
return
}

// extract generators from config
var generators []design.ConfigletGenerator

resp.Diagnostics.Append(config.Generators.ElementsAs(ctx, &generators, false)...)
if resp.Diagnostics.HasError() {
return
Expand Down

0 comments on commit 182ee32

Please sign in to comment.