#NEWLINE# def _is_vdi_a_snapshot( vdi_rec ) : #NEWLINE# #INDENT# 'Ensure VDI is a snapshot, and not cached image.' #NEWLINE# is_a_snapshot = vdi_rec [ 'is_a_snapshot' ] #NEWLINE# image_id = vdi_rec [ 'other_config' ] . get ( 'image-id' ) #NEWLINE# return ( is_a_snapshot and ( not image_id ) )