livemedia-creator: virt-image needs ram in MiB not KiB (#1061773)

Resolves: rhbz#1061773
This commit is contained in:
Brian C. Lane 2014-02-05 14:39:04 -08:00
parent 0bbd00a807
commit 04ba927777

View File

@ -402,7 +402,7 @@ def make_appliance(disk_img, name, template, outfile, networks=None, ram=1024,
checksum_type="sha256", checksum=sha256.hexdigest()) checksum_type="sha256", checksum=sha256.hexdigest())
try: try:
result = Template(filename=template).render(disks=[disk_info], name=name, result = Template(filename=template).render(disks=[disk_info], name=name,
arch=arch, memory=ram*1024, vcpus=vcpus, networks=networks, arch=arch, memory=ram, vcpus=vcpus, networks=networks,
title=title, project=project, releasever=releasever) title=title, project=project, releasever=releasever)
except Exception: except Exception:
log.error(text_error_template().render()) log.error(text_error_template().render())