-
Notifications
You must be signed in to change notification settings - Fork 153
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
Properly quote Synchronize #241
Properly quote Synchronize #241
Conversation
The synchronize action plugin and module were a bit sloppy when it came to the command-line parameter quoting and that caused failuer on some systems (for example, on Fedora 34). This commit makes sure any argumnts with potentially problematic characters are quoted before being used.
/cc @sshnaidm |
I have a following error on f33:
|
Ugh, this might be "fun" since it looks like that by making f34 happy, I broke f33 (and probably a few systems more). But looking at the output of the task, I see that Ansible executed the following command:
And by looking at the rsync man page, this should be a valid command. Let me try wake my f33 up and see what command I see there. |
The new code works for me on my old Fedora 33 and the main branch fails exactly the same on my f33 as it does on f34. So now I am really puzzled about what is going on here. So I guess there is something different between my and @sshnaidm machine. Now we just need to figure out whose machine is messed up and what that mess actually is ;) |
On fresh fedora33 and CentOS 8 works fine. LGTM |
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.
LGTM
@saito-hideki this PR got 2 approvals, can we gate this? |
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.
LGTM!
SUMMARY
The synchronize action plugin and module were a bit sloppy when it came to the command-line parameter quoting and that caused failure on some systems (for example, on Fedora 34).
This commit makes sure any arguments with potentially problematic characters are quoted before being used.
Fixes #242
ISSUE TYPE
COMPONENT NAME
synchronize