Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only refresh project name if Rundeck server provides it #4301

Merged
merged 1 commit into from
Dec 18, 2015
Merged

Only refresh project name if Rundeck server provides it #4301

merged 1 commit into from
Dec 18, 2015

Conversation

apparentlymart
Copy link
Contributor

It seems that not all Rundeck servers consistently return the project name when retrieving a job. Not yet sure in what situations it is or isn't returned, but since jobs are not allowed to move between projects anyway it doesn't hurt to just skip refreshing it if the server provides no value.

Without this, the project name can get refreshed as the empty string, which then causes Terraform to treat it as a diff. This means that Terraform constantly wants to delete and re-create the job, since project is a ForceNew attribute.

It seems that not all Rundeck servers consistently return the project name
when retrieving a job. Not yet sure in what situations it is or isn't
returned, but since jobs are not allowed to move between projects anyway
it doesn't hurt to just skip refreshing it if the server provides no
value.
@phinze
Copy link
Contributor

phinze commented Dec 18, 2015

LGTM

apparentlymart added a commit that referenced this pull request Dec 18, 2015
Only refresh project name if Rundeck server provides it
@apparentlymart apparentlymart merged commit e971688 into hashicorp:master Dec 18, 2015
@apparentlymart apparentlymart deleted the rundeck-task-project-issue branch December 18, 2015 17:43
@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants