The agent returns command_result of None when a command is in progress.
The code assumed it would return an empty dict. Fix the access of
command_result to never return None, and fix the tests to reflect
reality.
Closes-Bug: #1444715
Change-Id: Iae6cd90517cb7b268ce2c089c92f64b09a606a42
(cherry picked from commit 2e2fb8c4997b1cac7dc18e67e43a0d8ba65a79d5)
Reviewed: https:/ /review. openstack. org/174122 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=904bbcde88d 9db0cd60719e771 ea168cb52948e1
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 904bbcde88d9db0 cd60719e771ea16 8cb52948e1
Author: Jim Rollenhagen <email address hidden>
Date: Fri Apr 10 06:22:28 2015 -0700
Fix heartbeat when clean step in progress
The agent returns command_result of None when a command is in progress.
The code assumed it would return an empty dict. Fix the access of
command_result to never return None, and fix the tests to reflect
reality.
Closes-Bug: #1444715 268ce2c089c92f6 4b09a606a42 c7dc18e67e43a0d 8ba65a79d5)
Change-Id: Iae6cd90517cb7b
(cherry picked from commit 2e2fb8c4997b1ca