]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Support cloud-specific suffixes to server status.
authorMonty Taylor <mordred@inaugust.com>
Mon, 17 Jun 2013 21:34:33 +0000 (17:34 -0400)
committerMonty Taylor <mordred@inaugust.com>
Tue, 18 Jun 2013 18:21:45 +0000 (14:21 -0400)
commitb0701f6c22e3bda1e588893f015572c0379d0c87
treeeee858051266ad8c52a18b726354ea4b1753f9a8
parentd25c1e94edff5ce0350b73037a7b3da3dfc70eec
Support cloud-specific suffixes to server status.

Some clouds, *cough*HP*cough* append extra data to their
status strings. Such as: BUILD(scheduling) or BUILD(networking).
We don't really want to be on the hook for keeping a list of those,
but if we just grab the bit in front of the parenthetical, we should
be able to tell state sensibly, even when people are being weird.

Change-Id: Idaf079d6090db50c9041f398a257b427d63ff48d
heat/engine/resources/instance.py
heat/tests/test_instance.py