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

[Sanity] [module_utils/encode] Sanity error failing with 2.18 #1865

Merged
merged 6 commits into from
Jan 22, 2025

Conversation

fernandofloresg
Copy link
Collaborator

SUMMARY

Fixes sanity 2.18 error message:
ERROR: plugins/module_utils/encode.py:440:27: used-before-assignment: Using variable 'dest_f' before assignment

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module_utils/encode.py

ADDITIONAL INFORMATION

@fernandofloresg
Copy link
Collaborator Author

Screenshot 2025-01-22 at 9 19 01 AM

Screenshot 2025-01-22 at 9 18 29 AM

This one took more than expected due to intermittent issues while testing zos_copy

@fernandofloresg fernandofloresg marked this pull request as ready for review January 22, 2025 15:19
Copy link
Collaborator

@richp405 richp405 left a comment

Choose a reason for hiding this comment

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

I'm surprised that tripped a sanity check. Nice fix.

@fernandofloresg
Copy link
Collaborator Author

I'm surprised that tripped a sanity check. Nice fix.

Yes and tbh makes no sense to me bc there other variables with the same definition style and it does not raise any issue.

@fernandofloresg fernandofloresg merged commit 094b490 into dev Jan 22, 2025
8 checks passed
@fernandofloresg fernandofloresg deleted the sanity/2.18-encode branch January 22, 2025 19:41
Rohitcodes28 pushed a commit that referenced this pull request Jan 23, 2025
* Added encode fix

* Added changelogs

* Fixed users utility
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.

3 participants