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

possible fix for when survey_spec_contents.name is not defined #60

Conversation

lennysh
Copy link
Contributor

@lennysh lennysh commented Jan 14, 2025

What does this PR do?

So, there may be a better way to fix it, but this fixed it for me. All of my templates that didn't have any survey questions were failing because the dict item spec_item didn't have name (line 213). I didn't have an issue in 2.4, but did as soon as I used this new role in 2.5. I don't know why the exiting | length > 0 wasn't enough.

How should this be tested?

For me, it just took me using it against job_templates that did NOT have ANY survey questions:

image

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc

N/A

@konjas
Copy link

konjas commented Jan 15, 2025

it duplicates #51

@ivarmu
Copy link
Contributor

ivarmu commented Jan 15, 2025

Closing as it's duplicated of #51 as @konjas said.

@ivarmu ivarmu closed this Jan 15, 2025
@ivarmu ivarmu added the duplicate This issue or pull request already exists label Jan 15, 2025
@lennysh lennysh deleted the lennysh-possible-fix-survey_spec_contents-name-is-not-defined branch January 30, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants