User story #11610
closedfile_copy_with_check
Added by François ARMAND about 7 years ago. Updated over 2 years ago.
Description
We would like to be able to use a method which copy a file only if the dest file is different and an oracle returns "ok".
The workflow would be the one:
Files
copy_file_with_validation.png (7.34 KB) copy_file_with_validation.png | François ARMAND, 2017-10-17 14:28 | ||
copy_file_with_validation.png (66.7 KB) copy_file_with_validation.png | François ARMAND, 2017-10-17 14:31 |
Updated by François ARMAND about 7 years ago
Updated by Alexis Mousset almost 7 years ago
- Assignee set to Alexis Mousset
- Target version set to 4.1.10
Updated by Alexis Mousset almost 7 years ago
- Status changed from New to In progress
Updated by Alexis Mousset almost 7 years ago
- The actual file copy has to be done by a files promises (to get backup, etc.)
- The diff check can use a file promise in dry-run mode (or an execresult with the diff command)
Updated by Alexis Mousset almost 7 years ago
It would be called "file_copy_from_local_source_with_check".
Updated by Alexis Mousset almost 7 years ago
- do we want it to be (possibly ?) recursive?
- in this case, on what do we call the command?
Updated by Alexis Mousset almost 7 years ago
Work in progess here: https://github.com/amousset/ncf/commit/0fa18aaaa96a467229bc286b9a14769d737d1358
Updated by Janos Mattyasovszky almost 7 years ago
bundle agent file_copy_from_local_source_with_check(source, destination, check_command)
You might want to add rc_code_ok
or similar, since you might have to have some specific non-zero exit-code that represents a validation success...
Updated by Alexis Mousset almost 7 years ago
Work in progess here: https://github.com/amousset/ncf/commit/8eb595acbe9f03e403e29d5ef5e19370abfb79fe
Updated by Alexis Mousset almost 7 years ago
Work in progess here: https://github.com/amousset/ncf/commit/b485cc647f9061f1aed3960dfb0b7b369c12f32b
Updated by Alexis Mousset almost 7 years ago
Work in progess here: https://github.com/amousset/ncf/commit/9f1b05c42712b32d78f46f2a9f4d95dd5cedc8a6
Updated by Alexis Mousset almost 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/ncf/pull/705
Updated by Alexis Mousset almost 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:13e510ced1c300e2af1d9ef8a15b1dd42fb592dd.
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.
- 4.1.10: Announce Changelog
- 4.2.4: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods