diff options
author | Jan Horstmann <j.horstmann@mittwald.de> | 2019-08-30 11:42:27 +0200 |
---|---|---|
committer | Jan Horstmann <j.horstmann@mittwald.de> | 2019-09-03 08:45:45 +0200 |
commit | 22db498ea1d02119d7662f566e299d04a09e9ae5 (patch) | |
tree | 6a7d508af763b530a87cda96fd5f13a08319e52b /ironic/common/pxe_utils.py | |
parent | d5535d9693580f9a5fcda76fa0464e150808c670 (diff) | |
download | ironic-22db498ea1d02119d7662f566e299d04a09e9ae5.tar.gz |
Fix typo in handling of exception FailedToGetIPAddressOnPort
Function create_pxe_config in ironic/common/pxe_utils.py tried to
handle exception FailedToGetIPaddressesOnPort. However, the raised
exception is called FailedToGetIPAddressOnPort.
Change-Id: I33e51f064daa0a0d70dd87e163d401c0e7b922bc
Story: 2006478
Task: 36419
Diffstat (limited to 'ironic/common/pxe_utils.py')
-rw-r--r-- | ironic/common/pxe_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/common/pxe_utils.py b/ironic/common/pxe_utils.py index ddbfdc004..e77191b68 100644 --- a/ironic/common/pxe_utils.py +++ b/ironic/common/pxe_utils.py @@ -308,7 +308,7 @@ def create_pxe_config(task, pxe_options, template=None, ipxe_enabled=False): # dhcp_provider interface is set to none. This will result # in the MAC addresses and DHCP files being written, and # we can remove IP address creation for the grub use. - except exception.FailedToGetIPaddressesOnPort as e: + except exception.FailedToGetIPAddressOnPort as e: if CONF.dhcp.dhcp_provider != 'none': with excutils.save_and_reraise_exception(): LOG.error('Unable to create boot config, IP address ' |