diff options
| author | Julia Kreger <juliaashleykreger@gmail.com> | 2020-11-11 17:31:05 -0800 |
|---|---|---|
| committer | Julia Kreger <juliaashleykreger@gmail.com> | 2020-12-14 06:36:18 -0800 |
| commit | cb6c0059b5f5bd428623c461bd69afc793441f7e (patch) | |
| tree | a816047f4197594bb7680bcf19bf46f9fa84e8cf /ironic_python_agent/hardware.py | |
| parent | b42719f3fa7992225191a7fffcc45730f0c1644e (diff) | |
| download | ironic-python-agent-cb6c0059b5f5bd428623c461bd69afc793441f7e.tar.gz | |
Fix default disk label with partition images
Partition images through the agent have the unfortunate
side effect of being executed without full node context
by default. Luckilly we've had a similar problem and
cache the node.
This patch changes the lookup from a default of msdos
partitions to use the cached node object.
Change-Id: I002816c9372fdf1cc32f3c67f420073551479fd9
Diffstat (limited to 'ironic_python_agent/hardware.py')
| -rw-r--r-- | ironic_python_agent/hardware.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index b5d96fcd..1bfb2b46 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -2425,6 +2425,10 @@ def cache_node(node): expected root device to appear. :param node: Ironic node object + :param wait_for_disks: Default True switch to wait for disk setup to be + completed so the node information can be aligned + with the physical storage devices of the host. + This is likely to be used in unit testing. """ global NODE new_node = NODE is None or NODE['uuid'] != node['uuid'] |
