-
Notifications
You must be signed in to change notification settings - Fork 151
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
synchronize: add delay_updates option #167
synchronize: add delay_updates option #167
Conversation
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.
@aminvakil thanks for implementing this !
Thanks Amin and quidame! |
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Rerun CI. |
Rerun CI. |
@aminvakil Thanks for the contribution, |
@@ -464,6 +473,9 @@ def main(): | |||
) | |||
_sshpass_pipe = os.pipe() | |||
cmd = ['sshpass', '-d' + to_native(_sshpass_pipe[0], errors='surrogate_or_strict')] + cmd | |||
if delay_updates: | |||
cmd.append('--delay_updates') |
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.
This breaks the module: it crashes with rsync: --delay_updates: unknown option\nrsync error: syntax or usage error (code 1) at main.c(1746)
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.
(_
needs to be -
)
SUMMARY
Fixes #157
ISSUE TYPE
COMPONENT NAME
synchronize
ADDITIONAL INFORMATION
This does not disable the
delay-updates
by default, so current behaviour will not be changed, but adds an option which can be set to false and disabledelay-updates
.