From b2e4eec376feb23a5915f3595c0faf1beab9cca5 Mon Sep 17 00:00:00 2001 From: Marco Morais Date: Wed, 4 Feb 2015 09:08:28 +0000 Subject: [PATCH] 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 --- ironic/tests/conductor/test_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/tests/conductor/test_manager.py b/ironic/tests/conductor/test_manager.py index 7464c578ab..889aeb96cf 100644 --- a/ironic/tests/conductor/test_manager.py +++ b/ironic/tests/conductor/test_manager.py @@ -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)