Merge "allow rebooting instance in shutoff state"
This commit is contained in:
commit
9f145969df
@ -70,7 +70,7 @@ class RebootInstance(tables.BatchAction):
|
||||
classes = ('btn-danger',)
|
||||
|
||||
def allowed(self, request, instance=None):
|
||||
return instance.status in ACTIVE_STATES
|
||||
return instance.status in ACTIVE_STATES or instance.status == 'SHUTOFF'
|
||||
|
||||
def action(self, request, obj_id):
|
||||
api.server_reboot(request, obj_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user