diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-11-04 14:11:05 +0100 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-11-04 14:20:27 +0100 |
commit | db31628dea1eaddff91cd962fb2d4a9ec93e44e3 (patch) | |
tree | 9c26621b484f47b76385b2e194fce905f2b74b82 /ironic/drivers/modules/pxe.py | |
parent | acfc2ea440d827bfa958beb9c49eec1f2269d0aa (diff) | |
download | ironic-db31628dea1eaddff91cd962fb2d4a9ec93e44e3.tar.gz |
Backward compatibility for the ramdisk_params change
Follow-up to commit 08fe4af481444441084fa60cd0ff0246e5e65dcb restoring
support for ipa-api-url in custom templates and adding a release note
explaining the change.
Story: #1528920
Change-Id: Ic8fc31fcde9a6f685bb1390a75a6a010c149f628
Diffstat (limited to 'ironic/drivers/modules/pxe.py')
-rw-r--r-- | ironic/drivers/modules/pxe.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic/drivers/modules/pxe.py b/ironic/drivers/modules/pxe.py index a73f18abf..e70a05721 100644 --- a/ironic/drivers/modules/pxe.py +++ b/ironic/drivers/modules/pxe.py @@ -166,6 +166,9 @@ class PXEBoot(pxe_base.PXEBaseMixin, base.BootInterface): pxe_options = pxe_utils.build_pxe_config_options( task, pxe_info, ipxe_enabled=ipxe_enabled, ramdisk_params=ramdisk_params) + # TODO(dtantsur): backwards compability hack, remove in the V release + if ramdisk_params.get("ipa-api-url"): + pxe_options["ipa-api-url"] = ramdisk_params["ipa-api-url"] pxe_config_template = deploy_utils.get_pxe_config_template(node) |