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

synchronize: add delay_updates option #167

Merged

Conversation

aminvakil
Copy link
Contributor

SUMMARY

Fixes #157

ISSUE TYPE
  • Feature Pull Request
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 disable delay-updates.

@aminvakil aminvakil changed the title Add delay_updates option to synchronize module synchronize: add delay_updates option Apr 3, 2021
Copy link
Contributor

@quidame quidame left a 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 !

plugins/modules/synchronize.py Outdated Show resolved Hide resolved
@FrankyGT
Copy link

Thanks Amin and quidame!

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
@aminvakil
Copy link
Contributor Author

Rerun CI.

@aminvakil aminvakil closed this May 29, 2021
@aminvakil
Copy link
Contributor Author

Rerun CI.

@aminvakil aminvakil reopened this May 29, 2021
@Akasurde Akasurde added the gate Gate PR in Zuul CI (Obsolete: Please set "mergeit" instead of "gate") label May 31, 2021
@ansible-zuul ansible-zuul bot merged commit 7e6adc9 into ansible-collections:main May 31, 2021
@Akasurde
Copy link
Member

@aminvakil Thanks for the contribution,

@aminvakil aminvakil deleted the rsync_hardcoded_options branch May 31, 2021 13:07
@@ -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')
Copy link
Contributor

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)

Copy link
Contributor

Choose a reason for hiding this comment

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

(_ needs to be -)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Gate PR in Zuul CI (Obsolete: Please set "mergeit" instead of "gate")
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disable hardcoded rsync options
5 participants