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.
Reviewed: https:/ /review. openstack. org/72469 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=ccc71b20909 db3fd5a6301a4ec f3aaea703f5bf2
Committed: https:/
Submitter: Jenkins
Branch: master
commit ccc71b20909db3f d5a6301a4ecf3aa ea703f5bf2
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: I23e759036c8f6c 35331243717853c 8a5e269fa75
Closes-Bug: 1278487