mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Set basedir to . if there isn't one
This avoids special-casing '' = '.' everywhere the basedir gets used. Fixes #1729.
This commit is contained in:
@@ -49,8 +49,6 @@ class Connection(object):
|
||||
|
||||
vvv("EXEC %s" % cmd, host=self.host)
|
||||
basedir = self.runner.basedir
|
||||
if basedir == '':
|
||||
basedir = '.'
|
||||
p = subprocess.Popen(cmd, cwd=basedir, shell=True, stdin=None,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
|
||||
Reference in New Issue
Block a user