def save_instance_type_info(metadata, instance_type, prefix=''):
 for key in system_metadata_instance_type_props.keys():
  to_key = ('%sinstance_type_%s' % (prefix, key))
  metadata[to_key] = instance_type[key]
 return metadata

def save_instance_type_info ( metadata , instance_type , prefix = '' ) : for key in system_metadata_instance_type_props . keys ( ) : to_key = ( '%sinstance_type_%s' % ( prefix , key ) ) metadata [ to_key ] = instance_type [ key ] return metadata
save properties from instance_type into instances system_metadata .