Merge trunk and resolve slight conflict
This commit is contained in:
@@ -21,7 +21,6 @@ Take uploaded bucket contents and register them as disk images (AMIs).
|
||||
Requires decryption using keys in the manifest.
|
||||
"""
|
||||
|
||||
# TODO(jesse): Got these from Euca2ools, will need to revisit them
|
||||
|
||||
import binascii
|
||||
import glob
|
||||
@@ -29,7 +28,6 @@ import json
|
||||
import os
|
||||
import shutil
|
||||
import tarfile
|
||||
import tempfile
|
||||
from xml.etree import ElementTree
|
||||
|
||||
from nova import exception
|
||||
@@ -199,12 +197,17 @@ class Image(object):
|
||||
except:
|
||||
ramdisk_id = None
|
||||
|
||||
try:
|
||||
arch = manifest.find("machine_configuration/architecture").text
|
||||
except:
|
||||
arch = 'x86_64'
|
||||
|
||||
info = {
|
||||
'imageId': image_id,
|
||||
'imageLocation': image_location,
|
||||
'imageOwnerId': context.project_id,
|
||||
'isPublic': False, # FIXME: grab public from manifest
|
||||
'architecture': 'x86_64', # FIXME: grab architecture from manifest
|
||||
'architecture': arch,
|
||||
'imageType': image_type}
|
||||
|
||||
if kernel_id:
|
||||
|
||||
Reference in New Issue
Block a user