#NEWLINE# def _get_vdi_other_config( disk_type , instance = None ) : #NEWLINE# #INDENT# "Return metadata to store in VDI's other_config attribute.\n\n    `nova_instance_uuid` is used to associate a VDI with a particular instance\n    so that, if it becomes orphaned from an unclean shutdown of a\n    compute-worker, we can safely detach it.\n    " #NEWLINE# other_config = { #NEWLINE# #INDENT# 'nova_disk_type' : disk_type , #NEWLINE# #UNINDENT# } #NEWLINE# if disk_type : #NEWLINE# #INDENT# other_config [ 'nova_instance_uuid' ] = instance [ 'uuid' ] #NEWLINE# #UNINDENT# return other_config