Commit d80eb4a7 by greenbrian

Update unarchive

Modified argument order provided to unzip command as the -o was being interpreted as a file.
parent 41e83d9d
...@@ -73,7 +73,7 @@ class _zipfile(object): ...@@ -73,7 +73,7 @@ class _zipfile(object):
return dict(bool = False) return dict(bool = False)
def unarchive(self): def unarchive(self):
cmd = 'unzip "%s" -d "%s" -o' % (self.src,self.dest) cmd = 'unzip -o "%s" -d "%s"' % (self.src,self.dest)
rc, out, err = self.module.run_command(cmd) rc, out, err = self.module.run_command(cmd)
return dict(cmd = cmd, rc=rc, out=out, err=err) return dict(cmd = cmd, rc=rc, out=out, err=err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment