summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Cragg <edward.cragg@codethink.co.uk>2015-02-20 14:46:48 (GMT)
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-02-27 17:28:38 (GMT)
commitd2f7b1d768b324bd75c09475c62ff0ed96bef760 (patch)
tree755f17c395b8f2c80e373a359d4e39f27c8ee0c6
parent7a1b589138d654151227d590ea23d898fca1df7d (diff)
downloaddefinitions-d2f7b1d768b324bd75c09475c62ff0ed96bef760.tar.gz
pxeboot: fix input argument to urlunsplit()
-rwxr-xr-xpxeboot.write4
1 files changed, 2 insertions, 2 deletions
diff --git a/pxeboot.write b/pxeboot.write
index a0cae1e..848c602 100755
--- a/pxeboot.write
+++ b/pxeboot.write
@@ -365,8 +365,8 @@ class PXEBoot(morphlib.writeexts.WriteExtension):
template = os.path.join(url.path, 'nfsroot.XXXXXXXXXX')
with self._remote_tempdir(hostname=url.hostname, template=template) \
as tempdir:
- nfsroot = urlparse.urlunsplit(url.scheme, url.netloc, tempdir,
- url.query, url.fragment)
+ nfsroot = urlparse.urlunsplit((url.scheme, url.netloc, tempdir,
+ url.query, url.fragment))
cliapp.runcmd(['rsync', '-asXSPH', '--delete', rootfs, nfsroot],
stdin=None, stdout=None, stderr=None)
yield basename