Jira (BOLT-1364) upload_file to have more fine control over what can be copied if the target exists

2 views
Skip to first unread message

Shaigy Nixon (JIRA)

unread,
Jun 5, 2019, 3:03:04 PM6/5/19
to puppe...@googlegroups.com
Shaigy Nixon created an issue
 
Puppet Task Runner / Improvement BOLT-1364
upload_file to have more fine control over what can be copied if the target exists
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/06/05 12:02 PM
Priority: Normal Normal
Reporter: Shaigy Nixon

Instead of failing right away if the target exists, it will be nice to have more fine control over what can be copied in upload_file. Ex: copy files that doesn't exist in target directory, or ability to overwrite the default option and copy files even if it exists in the target directory etc.

Right now mv fill fail underneath upload_file, if the target directory exists.

mv: cannot move ‘/tmp/3a21e5bb-563c-499b-85cd-c1296e2ef6b6/enterprise’ to ‘/etc/puppetlabs/enterprise/enterprise’:

Came across this error while trying to sync the enterprise_data on the master to other infra nodes in a plan.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages