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

fix(client): Serialize properly playbooks with empty maps #4340

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

pkoprda
Copy link
Contributor

@pkoprda pkoprda commented Jan 15, 2025

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

  • Card ID: CCT-1101

Empty maps in playbooks were not being correctly handled by the serializer. To maintain compatibility across various environments, they are now serialized as ordereddict().

This pull request is a backport from insights-ansible-playbook-verifier#29.

* Card ID: CCT-1101

Empty maps in playbooks were not being correctly handled by the
serializer. To maintain compatibility across various environments,
they are now serialized as `ordereddict()`.

Signed-off-by: pkoprda <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.04%. Comparing base (a9f19da) to head (b2f4f5d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4340      +/-   ##
==========================================
- Coverage   77.04%   77.04%   -0.01%     
==========================================
  Files         736      736              
  Lines       41374    41376       +2     
  Branches     8790     8791       +1     
==========================================
  Hits        31877    31877              
- Misses       8436     8438       +2     
  Partials     1061     1061              
Flag Coverage Δ
unittests 77.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

LGTM. @xiangce one more Verifier fix :)

@xiangce xiangce merged commit be6a4ba into RedHatInsights:master Jan 15, 2025
12 of 14 checks passed
xiangce pushed a commit that referenced this pull request Jan 16, 2025
* Card ID: CCT-1101

Empty maps in playbooks were not being correctly handled by the
serializer. To maintain compatibility across various environments,
they are now serialized as `ordereddict()`.

Signed-off-by: pkoprda <[email protected]>
(cherry picked from commit be6a4ba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants