Skip to content

na_ontap_broadcast_domain: fix KeyError on REST create without mtu - #357

Open
CarstenGrohmann wants to merge 1 commit into
ansible-collections:mainfrom
CarstenGrohmann:fix/broadcast-domain-mtu-rest-create
Open

na_ontap_broadcast_domain: fix KeyError on REST create without mtu#357
CarstenGrohmann wants to merge 1 commit into
ansible-collections:mainfrom
CarstenGrohmann:fix/broadcast-domain-mtu-rest-create

Conversation

@CarstenGrohmann

Copy link
Copy Markdown
SUMMARY

Creating a broadcast domain over REST without mtu raised an uncaught KeyError. The REST create path read self.parameters['mtu'] directly, but mtu is optional and absent when the caller omits it.

ONTAP REST requires mtu to create a broadcast domain, so fail early with an explicit message instead of the bare KeyError.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

netapp.ontap.na_ontap_broadcast_domain

Creating a broadcast domain over REST without mtu raised an uncaught
KeyError. The REST create path read self.parameters['mtu'] directly,
but mtu is optional and absent when the caller omits it.

ONTAP REST requires mtu to create a broadcast domain, so fail early
with an explicit message instead of the bare KeyError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant