-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
archive - fixing determination of archive root when root is '/' #3036
archive - fixing determination of archive root when root is '/' #3036
Conversation
/rebuild_failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks a lot!
Backport to stable-2: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 31189e9 on top of patchback/backports/stable-2/31189e96458f199d1cd0a1c384057a2a85a5ff8d/pr-3036 Backporting merged PR #3036 into main
🤖 @patchback |
Backport to stable-3: 💚 backport PR created✅ Backport PR branch: Backported as #3062 🤖 @patchback |
@Ajpantuso thanks a lot for fixing this! |
* Initial commit * Fixing units and path joins * Ensuring paths are consistently ordered * Adding changelog fragment * Using os.path.join to ensure trailing slashes are present * optimizing use of root in add_targets * Applying initial review suggestions (cherry picked from commit 31189e9)
… (#3062) * Initial commit * Fixing units and path joins * Ensuring paths are consistently ordered * Adding changelog fragment * Using os.path.join to ensure trailing slashes are present * optimizing use of root in add_targets * Applying initial review suggestions (cherry picked from commit 31189e9) Co-authored-by: Ajpantuso <[email protected]>
…ble-collections#3036) * Initial commit * Fixing units and path joins * Ensuring paths are consistently ordered * Adding changelog fragment * Using os.path.join to ensure trailing slashes are present * optimizing use of root in add_targets * Applying initial review suggestions (cherry picked from commit 31189e9)
Opened #3065 for manually backporting to |
… of archive root when root is '/' (#3065) * archive - fixing determination of archive root when root is '/' (#3036) * Initial commit * Fixing units and path joins * Ensuring paths are consistently ordered * Adding changelog fragment * Using os.path.join to ensure trailing slashes are present * optimizing use of root in add_targets * Applying initial review suggestions (cherry picked from commit 31189e9) * removing unneccessary addition
SUMMARY
Fixes an existing bug in
archive
that sets the archive root to'///'
when the longest common root amongst all paths inpath
is'/'
ISSUE TYPE
COMPONENT NAME
plugins/modules/files/archive.py
ADDITIONAL INFORMATION
paths
units
instead ofintegration
tests.