#NEWLINE# def delete_iscsi( portal_address , portal_port , target_iqn ) : #NEWLINE# #INDENT# 'Delete the iSCSI target.' #NEWLINE# utils . execute ( 'iscsiadm' , '-m' , 'node' , '-p' , ( '%s:%s' % ( portal_port , portal_port ) ) , '-T' , target_iqn , '-o' , 'delete' , run_as_root = True , check_exit_code = [ 0 , 21 ] , attempts = 5 , delay_on_retry = True )