Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: win_copy failure from a VirtualBox share to a local path #33576

Merged

Commits on Dec 6, 2017

  1. fixed: win_copy failure from a VirtualBox share to a local path

    In the case when a source file/folder is on a VirtualBox share then
    win_copy task fails.
    E.g.
      - name: Copy file from VirtualBox share
        win_copy:
          src: \\vboxsvr\share\file
          dest: c:\local\path
          remote_src: true
    
    The reason is that .GetAccessControl method fails somehow for a
    file/folder on a VirtualBox share.
    
      PS c:\Users\vboxuser> $file = Get-Item -Path \\vboxsvr\share\file
      PS c:\Users\vboxuser> $file.GetAccessControl();
      Exception calling "GetAccessControl" with "0" argument(s): "Method
      failed with unexpected error code 1."
      ...
    
    <Jordan Borean (jborean93@gmail.com)> (@jborean93) said (see GitHub PR
    !33576):
    
    > ... we should just get rid of the ACL stuff in win_copy because;
    >
    > - There is a bug right now and it isn't actually working
    > - When copying a file in Windows manually, it does not bring across the
    >   ACL of the source file anyway
    > - We can add in a future option that copies the ACL but we should set a
    >   flag instead to do this
    
    So, remove the ACL stuff
    
    Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com>
    Reviewed-by: <Jordan Borean (jborean93@gmail.com)>
    ashumkin committed Dec 6, 2017
    Configuration menu
    Copy the full SHA
    185bdeb View commit details
    Browse the repository at this point in the history