Advertisement
ffredrikk

salt.states.file.copy bug?

Feb 10th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. this_works_without_issues:
  2. module.run:
  3. - name: cp.get_file
  4. - path: salt://windows/installers/AddAccountToLogonAsService.ps1
  5. - dest: C:\AddAccountToLogonAsService.ps1
  6.  
  7. this_will_fail:
  8. file.copy:
  9. - source: salt://windows/installers/AddAccountToLogonAsService.ps1
  10. - name: C:\AddAccountToLogonAsService.ps1
  11.  
  12. Error message:
  13. ID: this_will_fail
  14. Function: file.copy
  15. Name: C:\AddAccountToLogonAsService.ps1
  16. Result: False
  17. Comment: Source file "salt://windows/installers/AddAccountToLogonAsService.ps1" is not present
  18. Started: 08:13:23.242000
  19. Duration: 0.0 ms
  20. Changes:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement