Skip to content

Commit

Permalink
linting and such
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Dec 4, 2023
1 parent 63358d6 commit 545c35b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/examples_yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestBuildOnPreviewYAML(t *testing.T) {
})
}

func TestUnknownsBuildOnPreviewFailsYAML(t *testing.T) {
func TestUnknownsBuildOnPreviewWarnsYAML(t *testing.T) {
cwd, err := os.Getwd()
if !assert.NoError(t, err) {
t.FailNow()
Expand Down
8 changes: 4 additions & 4 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 +738,10 @@ func marshalBuildOnPreview(inputs resource.PropertyMap) bool {
func ensureMinimumBuildInputs(inputs resource.PropertyMap) bool {
if !inputs["build"].IsObject() {
return false
} else {
if inputs["build"].ObjectValue()["dockerfile"].ContainsUnknowns() || inputs["build"].ObjectValue()["context"].ContainsUnknowns() {
return false
}
}
if inputs["build"].ObjectValue()["dockerfile"].ContainsUnknowns() ||
inputs["build"].ObjectValue()["context"].ContainsUnknowns() {
return false
}
if inputs["imageName"].ContainsUnknowns() {
return false
Expand Down

0 comments on commit 545c35b

Please sign in to comment.