You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the jobs which should be executed locally, if we set nodes_selected_by_default to true, after applied, the resource result is still false and always show up as change in terraform plan.
If we set it to false, job will get NodesetEmptyException error.
nodes_selected_by_default=true
Expected Behavior
set nodes_selected_by_default be true, after apply, the resource should be true.
I think the issue is caused by JobToResource func,
There is a similar issue rundeck/rundeck#5336. nodesSelectedByDefault need to be true even for local job.
Actual Behavior
it's always false now.
Steps to Reproduce
neither node_filter_query nor node_filter_exclude_query is defined, the job should run locally.
2.set nodes_selected_by_default=true, after terraform apply, the resource nodes_selected_by_default is still false.
The text was updated successfully, but these errors were encountered:
minimorph223
changed the title
nodesSelectedByDefault apply result is false even set to true for local job
BUG: nodesSelectedByDefault apply result is false even set to true for local job
Nov 12, 2024
Hi there,
version
4.0.9
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
For the jobs which should be executed locally, if we set
nodes_selected_by_default
to true, after applied, the resource result is stillfalse
and always show up as change in terraform plan.If we set it to false, job will get
NodesetEmptyException
error.Expected Behavior
set
nodes_selected_by_default
be true, after apply, the resource should be true.I think the issue is caused by JobToResource func,
terraform-provider-rundeck/rundeck/resource_job.go
Line 970 in 79698ba
If job.NodesSelectedByDefault is not set, nodes_selected_by_default is false.
However, for a local job, job.NodesSelectedByDefault is not set and the default value is True.
https://github.com/rundeck/rundeck/blob/9a4d9c49f5c2ba6a2485ae79c500e21fbc31550e/grails-rundeck-data-shared/src/main/groovy/rundeck/data/job/RdNodeConfig.groovy#L29
There is a similar issue rundeck/rundeck#5336. nodesSelectedByDefault need to be true even for local job.
Actual Behavior
it's always false now.
Steps to Reproduce
2.set
nodes_selected_by_default=true
, afterterraform apply
, the resourcenodes_selected_by_default
is still false.The text was updated successfully, but these errors were encountered: