Use --arch in euca-bundle-image. Fixes #23

This commit is contained in:
Anders Ingemann 2014-02-23 19:46:50 +01:00
parent 6e145f6aca
commit ed4fa5e833

View file

@ -38,8 +38,10 @@ class BundleImage(Task):
def run(cls, info):
bundle_name = 'bundle-{id}'.format(id=info.run_id)
info.bundle_path = os.path.join(info.workspace, bundle_name)
arch = {'i386': 'i386', 'amd64': 'x86_64'}.get(info.manifest.system['architecture'])
log_check_call(['/usr/bin/euca-bundle-image',
'--image', info.volume.image_path,
'--arch', arch,
'--user', info.credentials['user-id'],
'--privatekey', info.credentials['private-key'],
'--cert', info.credentials['certificate'],