mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed and/or grouping
This commit is contained in:
parent
68325dbfe2
commit
b34b606fcf
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class ShellModule(object):
|
||||||
if not basefile:
|
if not basefile:
|
||||||
basefile = 'ansible-tmp-%s-%s' % (time.time(), random.randint(0, 2**48))
|
basefile = 'ansible-tmp-%s-%s' % (time.time(), random.randint(0, 2**48))
|
||||||
basetmp = self.join_path(C.DEFAULT_REMOTE_TMP, basefile)
|
basetmp = self.join_path(C.DEFAULT_REMOTE_TMP, basefile)
|
||||||
if system and basetmp.startswith('$HOME') or basetmp.startswith('~/'):
|
if system and (basetmp.startswith('$HOME') or basetmp.startswith('~/')):
|
||||||
basetmp = self.join_path('/tmp', basefile)
|
basetmp = self.join_path('/tmp', basefile)
|
||||||
cmd = 'mkdir -p %s' % basetmp
|
cmd = 'mkdir -p %s' % basetmp
|
||||||
if mode:
|
if mode:
|
||||||
|
|
Loading…
Reference in a new issue