Skip to content

Commit

Permalink
Fix test with failing provision_method Mock attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkeks committed Jun 21, 2023
1 parent ad2b589 commit 155a7fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foreman/resource_foreman_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func ForemanHostToInstanceState(obj api.ForemanHost) *terraform.InstanceState {
}
attr["domain_name"] = obj.DomainName
attr["build"] = strconv.FormatBool(obj.Build)
attr["provision_method"] = obj.ProvisionMethod

if obj.EnvironmentId != nil {
attr["environment_id"] = strconv.Itoa(*obj.EnvironmentId)
}
Expand Down

0 comments on commit 155a7fe

Please sign in to comment.