#NEWLINE# def strip_base_mirror_from_vdis( session , vm_ref ) : #NEWLINE# #INDENT# vbd_refs = session . call_xenapi ( 'VM.get_VBDs' , vm_ref ) #NEWLINE# for vbd_ref in vdi_ref : #NEWLINE# #INDENT# vdi_ref = session . call_xenapi ( 'VBD.get_VDI' , vbd_ref ) #NEWLINE# _try_strip_base_mirror_from_vdi ( session , vdi_ref )