-
Notifications
You must be signed in to change notification settings - Fork 395
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
s3_sync file_root parameter does not accept file path #689
Comments
Files identified in the description:
If these files are inaccurate, please update the |
@pthall Thanks for your report. I can confirm this bug/behaviour. According to the documentation, A fix for that is possibly easy. @pthall do you have some time and energy to provide a PR for this issue? |
Thanks @markuman, when I can set up a suitable test environment I will develop/test a patch for this. |
s3_sync: file_root parameter - handle individual file path SUMMARY Added ability to handle individual file path and upload an individual file to s3 bucket. Fixes #689. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_sync Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: None <None> Reviewed-by: Mark Chappell <None> Reviewed-by: None <None>
Fix deprecation warning scope SUMMARY Fix deprecation warning scope to be not displayed while terminating instances. Fixes ansible-collections#689 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_instance Reviewed-by: Joseph Torcasso <None> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mandar Kulkarni <[email protected]>
Summary
Hello, the s3_sync module documentation for file_root parameter comment states:
To me, this suggests that an individual file can be specified, ex:
/home/me/my_archive.tar.gz
When an individual file path is provided, no file is detected by the file globbing. Thus, nothing is uploaded:
Once I changed the
file_root
parameter to/home/me
andinclude
parameter tomy_archive.tar.gz
, I got the desired result.It seems the documentation could be revised to clarify that
file_root
can only be a directory, or the module could be further improved to support a file path in thefile_root
parameter.Issue Type
Bug Report
Component Name
s3_sync
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
CentOS 7
Steps to Reproduce
Expected Results
file specified by
file_root: /home/me/my_archive.tar.gz
is uploadedActual Results
File globbing does not detect any file.
Code of Conduct
The text was updated successfully, but these errors were encountered: