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

cli/sriov: remove unused code #435

Merged
merged 1 commit into from Jan 25, 2024
Merged

Conversation

daniloegea
Copy link
Collaborator

@daniloegea daniloegea commented Jan 18, 2024

We are parsing all the configuration unnecessarily here. np_state is being overridden by the State instance from the config manager.

Fix a related unit test. The configuration is expected to fail but now it's failing in a different place and raising a different exception.

Description

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

@slyon
Copy link
Collaborator

slyon commented Jan 22, 2024

Please rebase, now that CI is adopted after #434

We are parsing all the configuration unnecessarily here. np_state is
being overridden by the State instance from the config manager.

Fix a related unit test. The configuration is expected to fail but now
it's failing in a different place and raising a different exception.
Copy link
Collaborator

@slyon slyon left a comment

Choose a reason for hiding this comment

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

LGTM!

This was apparently a left-over from times where configmanager.py was not using netplan.Parser() and netplan.State() logic yet, but had its own Netplan parser, implemented in Python.

See #253 (comment) for reference.

@slyon slyon merged commit f26865f into canonical:main Jan 25, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants