diff options
author | Julia Kreger <juliaashleykreger@gmail.com> | 2018-05-08 12:21:13 -0700 |
---|---|---|
committer | Julia Kreger <juliaashleykreger@gmail.com> | 2018-05-09 06:11:30 -0700 |
commit | 530a3ed088dd2a21bbf4ca4c9e4c2a62fa2248db (patch) | |
tree | 73685925f7523ea994def0c5280b3e92ae979fc3 /ironic/drivers/modules/irmc/boot.py | |
parent | 6ff9a6b14c22c2cf640ba7a20828fed976b25f03 (diff) | |
download | ironic-530a3ed088dd2a21bbf4ca4c9e4c2a62fa2248db.tar.gz |
Fix W504 errors
Also a few related errors based on some earlier investigation
may have been pulled in along the lines of E305.
Story: #2001985
Change-Id: Ifb2d3b481202fbd8cbb472e02de0f14f4d0809fd
Diffstat (limited to 'ironic/drivers/modules/irmc/boot.py')
-rw-r--r-- | ironic/drivers/modules/irmc/boot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/drivers/modules/irmc/boot.py b/ironic/drivers/modules/irmc/boot.py index 4ab28ff44..5350e8f0e 100644 --- a/ironic/drivers/modules/irmc/boot.py +++ b/ironic/drivers/modules/irmc/boot.py @@ -281,10 +281,10 @@ def _prepare_boot_iso(task, root_uuid): image_props = ['kernel_id', 'ramdisk_id'] image_properties = images.get_image_properties( task.context, image_href, image_props) - kernel_href = (task.node.instance_info.get('kernel') or - image_properties['kernel_id']) - ramdisk_href = (task.node.instance_info.get('ramdisk') or - image_properties['ramdisk_id']) + kernel_href = (task.node.instance_info.get('kernel') + or image_properties['kernel_id']) + ramdisk_href = (task.node.instance_info.get('ramdisk') + or image_properties['ramdisk_id']) deploy_iso_filename = _get_iso_name(task.node, label='deploy') deploy_iso = ('file://' + os.path.join( |