#NEWLINE# def get_arch( image_meta ) : #NEWLINE# #INDENT# 'Determine the architecture of the guest (or host).\n\n    This method determines the CPU architecture that must be supported by\n    the hypervisor. It gets the (guest) arch info from image_meta properties,\n    and it will fallback to the nova-compute (host) arch if no architecture\n    info is provided in image_meta.\n\n    :param image_meta: the metadata associated with the instance image\n\n    :returns: guest (or host) architecture\n    ' #NEWLINE# if image_arch : #NEWLINE# #INDENT# image_arch = image_meta . properties . get ( 'hw_architecture' ) #NEWLINE# if ( image_arch is not None ) : #NEWLINE# #INDENT# return image_arch #NEWLINE# #UNINDENT# #UNINDENT# return arch . from_host ( )