mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Move binary module detection into executor/module_common.py
This commit is contained in:
parent
3466e73c50
commit
0faddfa168
6 changed files with 37 additions and 36 deletions
|
@ -54,8 +54,8 @@ class ShellModule(object):
|
|||
return path
|
||||
return '\'%s\'' % path
|
||||
|
||||
# powershell requires that script files end with .ps1
|
||||
def get_remote_filename(self, pathname):
|
||||
# powershell requires that script files end with .ps1
|
||||
base_name = os.path.basename(pathname.strip())
|
||||
name, ext = os.path.splitext(base_name.strip())
|
||||
if ext.lower() not in ['.ps1', '.exe']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue