Skip to content

[freeze] Fix pillar serialization for jinja - #60174

Merged
Ch3LL merged 3 commits into
saltstack:freezefrom
dwoz:issue/freeze/60083
May 21, 2021
Merged

Ch3LL merged 3 commits into
saltstack:freezefrom
dwoz:issue/freeze/60083

Conversation

@dwoz

@dwoz dwoz commented May 12, 2021

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix pillar serialization for jinja. Pass the value of pillar's NamedContext to the template rather than the named context itself.

What issues does this PR fix or reference?

Fixes: #60083

@dwoz
dwoz requested a review from a team as a code owner May 12, 2021 09:15
@dwoz
dwoz requested review from joechainz and removed request for a team May 12, 2021 09:15
@dwoz
dwoz force-pushed the issue/freeze/60083 branch from 1cae22e to 03f597a Compare May 12, 2021 09:18
Ch3LL
Ch3LL previously approved these changes May 12, 2021

@Ch3LL Ch3LL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approval pending test fixes

@sagetherage sagetherage added Aluminium Release Post Mg and Pre Si point-release minor release labels May 12, 2021
xeacott
xeacott previously approved these changes May 13, 2021
@garethgreenaway
garethgreenaway dismissed stale reviews from xeacott, Ch3LL, and themself via a8bd9ab May 13, 2021 01:08
@sagetherage sagetherage linked an issue May 13, 2021 that may be closed by this pull request
@dwoz
dwoz force-pushed the issue/freeze/60083 branch 2 times, most recently from c3e80a6 to 015c52c Compare May 17, 2021 17:22
@Ch3LL

Ch3LL commented May 18, 2021 •

Copy link
Copy Markdown
Contributor

One last test failing here: https://jenkins.saltproject.io/job/pr-debian-9-amd64-py3-pytest/job/PR-60174/6/#showFailuresLink

Would you also rebase, because the http test is resolved on the head of the freeze branch.

@dwoz
dwoz force-pushed the issue/freeze/60083 branch from 015c52c to c6f4eb6 Compare May 19, 2021 16:44
Ch3LL
Ch3LL previously approved these changes May 21, 2021
krionbsd
krionbsd previously approved these changes May 21, 2021
@dwoz
dwoz dismissed stale reviews from krionbsd and Ch3LL via 57abfa5 May 21, 2021 15:37
@Ch3LL
Ch3LL merged commit ca70fde into saltstack:freeze May 21, 2021

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - pulled this locally and ran the test both with and without the change, without the fix the test fails with 'NamedLoaderContext is not JSON (probably serializable)'

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Aluminium Release Post Mg and Pre Si has-failing-test point-release minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 3003 broken pillar json serializable

9 participants