~sandy-walsh/nova/zones

« back to all changes in this revision

Viewing changes to nova/compute/power_state.py

  • Committer: Sandy Walsh
  • Date: 2011-02-17 21:39:03 UTC
  • mfrom: (635.1.60 nova)
  • Revision ID: sandy.walsh@rackspace.com-20110217213903-swehe88wea8inxow
changed from 003-004 migration

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
SHUTOFF = 0x05
28
28
CRASHED = 0x06
29
29
SUSPENDED = 0x07
 
30
FAILED = 0x08
30
31
 
31
32
 
32
33
def name(code):
38
39
        SHUTDOWN: 'shutdown',
39
40
        SHUTOFF: 'shutdown',
40
41
        CRASHED: 'crashed',
41
 
        SUSPENDED: 'suspended'}
 
42
        SUSPENDED: 'suspended',
 
43
        FAILED: 'failed to spawn'}
42
44
    return d[code]