terraform-coop / terraform-provider-foreman

Terraform provider for Foreman
https://registry.terraform.io/providers/terraform-coop/foreman
Mozilla Public License 2.0
33 stars 31 forks source link

Do not ForceNew on environment change and fix creation without environment #34

Closed Fodoj closed 3 years ago

Fodoj commented 3 years ago
  1. It's totally possible to change the environment without destroying the host;
  2. Foreman can take environment from hostgroup, so it's not needed to be specified. But the current code sends it in the payload as nil, which results in "error": {"id":null,"errors":{"environment_id":["can't be blank"]},"full_messages":["Environment can't be blank"]}
Fodoj commented 3 years ago

Whatever happens to github actions today..