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

console-conf: fix crash on network info #1310

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

mwhudson
Copy link
Collaborator

If you run dryrun for console-conf, go to the network page, go to an
interface, then info, a crash of the form
TypeError: object str can't be used in 'await' expression
can be seen. The signature for the core version of get_info_for_netdev
is not async, but a non-async method returning str.

So mark the core version of the function async.

Co-authored-by: Michael Hudson-Doyle [email protected]
(cherry picked from commit 4b1277a)

If you run dryrun for console-conf, go to the network page, go to an
interface, then info, a crash of the form
TypeError: object str can't be used in 'await' expression
can be seen. The signature for the core version of get_info_for_netdev
is not async, but a non-async method returning str.

So mark the core version of the function async.

Co-authored-by: Michael Hudson-Doyle <[email protected]>
(cherry picked from commit 4b1277a)
@mwhudson
Copy link
Collaborator Author

For https://bugs.launchpad.net/subiquity/+bug/1978339. The core22 snap is following this branch but specifies a commit so that will need to be updated too.

@ogayot
Copy link
Member

ogayot commented Jun 13, 2022

Thanks! I was under the impression that the next release would be based on main though?

@dbungert
Copy link
Collaborator

Thanks! I was under the impression that the next release would be based on main though?

It will be, but this branch is still available for maintenance things. So this still helps.
But yes, the builder that creates snaps targetting the Beta channel needs to look at a new branch.

@dbungert dbungert merged commit abc0535 into canonical:server/jammy Jun 13, 2022
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.

3 participants