Fix "AttributeError: 'ActionModule' object has no attribute '_shell'"

'_shell' was removed with commit 2a5fbd8570
This commit is contained in:
Pierre-Louis Bonicoli 2015-07-01 17:15:40 +02:00
parent a155f65a89
commit 4d4512940d
6 changed files with 15 additions and 15 deletions

View file

@ -52,7 +52,7 @@ class ActionModule(ActionBase):
if source is None or dest is None:
return dict(failed=True, msg="src and dest are required")
source = self._shell.join_path(source)
source = self._connection._shell.join_path(source)
source = self._remote_expand_user(source, tmp)
# calculate checksum for the remote file
@ -78,7 +78,7 @@ class ActionModule(ActionBase):
pass
# calculate the destination name
if os.path.sep not in self._shell.join_path('a', ''):
if os.path.sep not in self._connection._shell.join_path('a', ''):
source_local = source.replace('\\', '/')
else:
source_local = source