skip fixup_perms for Powershell

action plugins will now skip _fixup_perms for Powershell. We'll have to come up with another way to do this at some point, but it's not necessary yet since we don't support become on Windows. Also added NotImplementedError throws to chmod/chown/set_facl operations on Powershell (instead of returning '') in case anyone tries to use them in the future.



fixes #15312
This commit is contained in:
Matt Davis 2016-04-07 07:27:01 -07:00 committed by Toshio Kuratomi
parent 5225048df9
commit 957b336cc1
2 changed files with 12 additions and 1 deletions

View file

@ -67,7 +67,13 @@ class ShellModule(object):
return path.endswith('/') or path.endswith('\\')
def chmod(self, mode, path, recursive=True):
return ''
raise NotImplementedError('chmod is not implemented for Powershell')
def chown(self, path, user, group=None, recursive=True):
raise NotImplementedError('chown is not implemented for Powershell')
def set_user_facl(self, path, user, mode, recursive=True):
raise NotImplementedError('set_user_facl is not implemented for Powershell')
def remove(self, path, recurse=False):
path = self._escape(self._unquote(path))