nova/compute/flavors.py
def save_flavor_info(metadata, instance_type, prefix=''):
    """Save properties from instance_type into instance's system_metadata,
    in the format of:

      [prefix]instance_type_[key]

    This can be used to update system_metadata in place from a type, as well
    as stash information about another instance_type for later use (such as
    during resize).
    """

    for key in system_metadata_flavor_props.keys():
        to_key = '%sinstance_type_%s' % (prefix, key)
        metadata[to_key] = instance_type[key]
    pci_request.save_flavor_pci_info(metadata, instance_type, prefix)
    return metadata
Save properties from instance_type into instance's system_metadata,
    in the format of:

      [prefix]instance_type_[key]

    This can be used to update system_metadata in place from a type, as well
    as stash information about another instance_type for later use (such as
    during resize).
    
Save properties from instance_type into instance's system_metadata,
in the format of.



This can be used to update system_metadata in place from a type, as well
as stash information about another instance_type for later use (such as
during resize).
Save properties from instance_type into instance ' s system_metadata in the format of . This can be used to update system_metadata in place from a type as well as stash information about another instance_type for later use ( such as during resize ) .
def save_flavor_info(metadata, instance_type, prefix=''):
    for key in system_metadata_flavor_props.keys():
        to_key = '%sinstance_type_%s' % (prefix, key)
        metadata[to_key] = instance_type[key]
    pci_request.save_flavor_pci_info(metadata, instance_type, prefix)
    return metadata
def save_flavor_info ( metadata , instance_type , prefix = '' ) : for key in system_metadata_flavor_props . keys ( ) : to_key = '%sinstance_type_%s' % ( prefix , key ) metadata [ to_key ] = instance_type [ key ] pci_request . save_flavor_pci_info ( metadata , instance_type , prefix ) return metadata
Save properties from instance_type into instance's system_metadata,
in the format of:
Save properties from instance_type into instance ' s system_metadata in the format of :
"""Save properties from instance_type into instance's system_metadata,
    in the format of:

      [prefix]instance_type_[key]

    This can be used to update system_metadata in place from a type, as well
    as stash information about another instance_type for later use (such as
    during resize).
    """
metadata
instance_type
prefix