Comment 3 for bug 1278487

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/72469
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ccc71b20909db3fd5a6301a4ecf3aaea703f5bf2
Submitter: Jenkins
Branch: master

commit ccc71b20909db3fd5a6301a4ecf3aaea703f5bf2
Author: David Lapsley <email address hidden>
Date: Mon Feb 10 12:01:17 2014 -0800

    Fixes instance double delete via row_action

    Currently when an instance is terminated, via the project/instances view,
    a "Terminate Instnace" button appears in the row_action column.

    This is due to a the TerminateInstance class's allowed() method always
    returning true.

    By putting logic in this method to only allow the terminate row_action
    when an instance is *not* being deleted, we prevent the double delete from
    occurring via row_action.

    Change-Id: I23e759036c8f6c35331243717853c8a5e269fa75
    Closes-Bug: 1278487