-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed loading of stack, env, block in data sources
- Loading branch information
Showing
4 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package provider | ||
|
||
import "github.com/hashicorp/terraform-plugin-go/tfprotov5/tftypes" | ||
|
||
func stringFromConfig(config map[string]tftypes.Value, key string) string { | ||
if config[key].IsNull() { | ||
return "" | ||
} | ||
val := "" | ||
config[key].As(&val) | ||
return val | ||
} | ||
|
||
func boolFromConfig(config map[string]tftypes.Value, key string) bool { | ||
if config[key].IsNull() { | ||
return false | ||
} | ||
val := false | ||
config[key].As(&val) | ||
return val | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters