"bolt file upload" exits with status 0 even if file doesn't upload

12 views
Skip to first unread message

Ty Young

unread,
Apr 11, 2018, 3:56:01 PM4/11/18
to Puppet Users
Friends, I ran a Bolt task this morning that exited successfully when (I don't think...) it should have.

The task I ran is ...


bolt file upload /home/me/puppet-agent-x64-latest.msi C:\\temp\\ --nodes winrm://zztypuppet04:5985 --user user --password --no-ssl --debug


.... and here's the output from the debug.log:

2018-04-11T10:51:16.406510 DEBUG  Bolt::Inventory: Did not find config for winrm://zztypuppet04:5985 in inventory
2018-04-11T10:51:17.034504 DEBUG  Bolt::Transport::WinRM: Uploading: '/home/me/puppet-agent-x64-latest.msi' to C:\temp\ on winrm://zztypuppet04:5985
2018-04-11T10:51:18.287111 DEBUG  zztypuppet04: Opened session
2018-04-11T10:52:03.666441 DEBUG  zztypuppet04: Closed session



What I discovered is that
  1. the file did not upload to C:\temp on the dest host (zztypuppet04) becaus
  2. zztypuppet04 C:\temp\ did not exist

When I created C:\temp\ and re-ran the task, the file uploaded and was available for installation.

My question is this: shouldn't Bolt have reported an error in this case ?
Reply all
Reply to author
Forward
0 new messages