* fix https://github.com/ansible/ansible/issues/20183 * make it nicerpull/4420/head
parent
55b9a11468
commit
12628ed7e5
|
@ -555,9 +555,10 @@ class ZipArchive(object):
|
||||||
return dict(unarchived=unarchived, rc=rc, out=out, err=err, cmd=cmd, diff=diff)
|
return dict(unarchived=unarchived, rc=rc, out=out, err=err, cmd=cmd, diff=diff)
|
||||||
|
|
||||||
def unarchive(self):
|
def unarchive(self):
|
||||||
cmd = [ self.cmd_path, '-o', self.src ]
|
cmd = [ self.cmd_path, '-o' ]
|
||||||
if self.opts:
|
if self.opts:
|
||||||
cmd.extend(self.opts)
|
cmd.extend(self.opts)
|
||||||
|
cmd.append(self.src)
|
||||||
# NOTE: Including (changed) files as arguments is problematic (limits on command line/arguments)
|
# NOTE: Including (changed) files as arguments is problematic (limits on command line/arguments)
|
||||||
# if self.includes:
|
# if self.includes:
|
||||||
# NOTE: Command unzip has this strange behaviour where it expects quoted filenames to also be escaped
|
# NOTE: Command unzip has this strange behaviour where it expects quoted filenames to also be escaped
|
||||||
|
|
Loading…
Reference in New Issue