#NEWLINE# def _get_instance_state( self , instance ) : #NEWLINE# #INDENT# nova_to_nodeconductor = { #NEWLINE# #INDENT# 'ACTIVE' : models . Instance . States . ONLINE , #NEWLINE# 'BUILDING' : models . Instance . States . PROVISIONING , #NEWLINE# 'ERROR' : models . Instance . States . ERRED , #NEWLINE# 'UNKNOWN' : models . Instance . States . ERRED , #NEWLINE# 'HARD_REBOOT' : models . Instance . States . STOPPING , #NEWLINE# 'REBOOT' : models . Instance . States . STOPPING , #NEWLINE# 'REBUILD' : models . Instance . States . STARTING , #NEWLINE# 'PASSWORD' : models . Instance . States . ONLINE , #NEWLINE# 'PAUSED' : models . Instance . States . OFFLINE , #NEWLINE# 'RESCUED' : models . Instance . States . ONLINE , #NEWLINE# 'RESIZED' : models . Instance . States . OFFLINE , #NEWLINE# 'REVERT_RESIZE' : models . Instance . States . STOPPING , #NEWLINE# 'SHUTOFF' : models . Instance . States . OFFLINE , #NEWLINE# 'STOPPED' : models . Instance . States . OFFLINE , #NEWLINE# 'SUSPENDED' : models . Instance . States . OFFLINE , #NEWLINE# 'VERIFY_RESIZE' : models . Instance . States . OFFLINE , #NEWLINE# #UNINDENT# } #NEWLINE# return nova_to_nodeconductor . get ( instance . status , models . Instance . States . ERRED )