Skip to content

Fixes KeyError for bridge with no "parameters:" setting#423

Merged
blackboxsw merged 2 commits into
canonical:masterfrom
candlerb:bridge-parameters
Jun 9, 2020
Merged

Fixes KeyError for bridge with no "parameters:" setting#423
blackboxsw merged 2 commits into
canonical:masterfrom
candlerb:bridge-parameters

Conversation

@candlerb
Copy link
Copy Markdown
Contributor

@candlerb candlerb commented Jun 9, 2020

LP #1879673

Reason: commit ded1ec8 introduced a regression whereby a bridge with no "parameters:" setting caused a KeyError exception.

@candlerb
Copy link
Copy Markdown
Contributor Author

candlerb commented Jun 9, 2020

Note: commit ded1ec8 did include a test case, but didn't test the case where no "parameters:" were provided.

I don't have an environment set up to be able to run the test suite for cloud-init, but someone might want to add the missing test case.

@candlerb
Copy link
Copy Markdown
Contributor Author

candlerb commented Jun 9, 2020

CLA now signed

@mitechie
Copy link
Copy Markdown
Contributor

mitechie commented Jun 9, 2020

Thank you so much, rerunning the travis checks.

@TheRealFalcon TheRealFalcon self-requested a review June 9, 2020 13:52
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution and for signing the CLA!

One final step in signing the CLA is to add your name (alphabetically please!) to the CLA signers file located at tools/.github-cla-signers . It can be added in this PR.

Yes, it is a good idea to add an additional test case for this fix, but a local environment is not necessary for unit testing. Tests will be run when you push a new commit on this PR. If you use the test you linked to in ded1ec8 , it should be possible to create a new test using the same format.

Comment thread cloudinit/net/network_state.py
@candlerb candlerb force-pushed the bridge-parameters branch 2 times, most recently from aa0ec2f to 407247b Compare June 9, 2020 14:49
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! We should be able to get this committed soon.

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 and validated that CLA is signed.

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.

4 participants