Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

candlerb
Copy link
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
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
Contributor Author

candlerb commented Jun 9, 2020

CLA now signed

@mitechie
Copy link
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
Member

@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.

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

@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
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