Skip to content

Commit

Permalink
allow rebooting instance in shutoff state
Browse files Browse the repository at this point in the history
bug 925259
Change-Id: If7d640ba5efee6bc17af64bd12f6519d9a99ecd4
  • Loading branch information
Thingee committed Feb 20, 2012
1 parent a10b39c commit 1ee0694
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -70,7 +70,7 @@ class RebootInstance(tables.BatchAction):
classes = ('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)
Expand Down

0 comments on commit 1ee0694

Please sign in to comment.