puppet-redis icon indicating copy to clipboard operation
puppet-redis copied to clipboard

redis::instance: do not exec cp if source and destination are equal

Open trefzer opened this issue 3 years ago • 2 comments

Pull Request (PR) description

Avoid using this copy with destination and source beeing equal

Remark: generally it's a bad idea to use an exec statement to copy a file. Since this way we cannot see diffs etc. A better way would be to use a file{ $destination: source=> $source} statement, but running with noop makes it fail then !

trefzer avatar Dec 11 '21 16:12 trefzer