Only add default tarball_dir if tarball is true

This commit is contained in:
Anders Ingemann 2013-07-13 14:04:06 +02:00
parent 9f85cdf909
commit b3311a8ff6

View file

@ -49,7 +49,7 @@ class Manifest(object):
self.bootstrapper = data['bootstrapper']
if 'tarball' not in self.bootstrapper:
self.bootstrapper['tarball'] = False
if 'tarball_dir' not in self.bootstrapper:
if 'tarball_dir' not in self.bootstrapper and self.bootstrapper['tarball']:
self.bootstrapper['tarball_dir'] = '/tmp'
self.volume = data['volume']
self.system = data['system']