Rename provision_state to power_state in test_manager.py

This patch fixes a typo in _create_node helper of test_manager.py.
The attribute dictionary incorrectly refers to power state values
with a key named provision_state.

No tests were failing due to the typo, but the fix improves the
readability of the code for future maintainers.

Change-Id: Ibaf75a3d22d650fc77b67d6fd5164b78da83f2a3
This commit is contained in:
Marco Morais 2015-02-04 09:08:28 +00:00
parent e4d2622c86
commit b2e4eec376

View File

@ -54,7 +54,7 @@ class _CommonMixIn(object):
def _create_node(**kwargs):
attrs = {'id': 1,
'uuid': ironic_utils.generate_uuid(),
'provision_state': states.POWER_OFF,
'power_state': states.POWER_OFF,
'maintenance': False,
'reservation': None}
attrs.update(kwargs)