From 9c2848cd85659fe9019a8f7bfe5313dca154c09c Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 14 Apr 2015 18:18:06 -0700 Subject: [PATCH] Remove power_state.BUILDING This isn't used anywhere in the code anymore, it was probably forgotten when the baremetal driver was deleted. Change-Id: Iaf60a1fce58373185cf93a3981c58acc75a5b477 --- nova/compute/power_state.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nova/compute/power_state.py b/nova/compute/power_state.py index 872f15ff5b99..523577c6bfc5 100644 --- a/nova/compute/power_state.py +++ b/nova/compute/power_state.py @@ -34,10 +34,6 @@ SHUTDOWN = 0x04 # the VM is powered off CRASHED = 0x06 SUSPENDED = 0x07 -# TODO(maoy): BUILDING state is only used in bare metal case and should -# eventually be removed/cleaned up. NOSTATE is probably enough. -BUILDING = 0x09 - # TODO(justinsb): Power state really needs to be a proper class, # so that we're not locked into the libvirt status codes and can put mapping # logic here rather than spread throughout the code @@ -48,5 +44,4 @@ STATE_MAP = { SHUTDOWN: 'shutdown', CRASHED: 'crashed', SUSPENDED: 'suspended', - BUILDING: 'building', }