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

fix: get ubuntu pro info on snaps #257

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

st3v3nmw
Copy link
Collaborator

@st3v3nmw st3v3nmw commented Aug 1, 2024

The Bug Report

This fix will allow the snap to push Ubuntu Pro information to Landscape by reading the /var/lib/ubuntu-advantage/status.json file. We have a system-files plug for this file.

One caveat is that the data_dir setting (/var/lib/ubuntu-advantage/) can be changed in /etc/ubuntu-advantage/uaclient.conf which would prevent the snap from reading the status file, as we can't plug into arbitrary folders on the host fs, especially not at runtime.

Sample Output (click to expand)

image

@st3v3nmw st3v3nmw force-pushed the get-ubuntu-pro-info-on-snap branch from 3cf91cc to 3075ccb Compare August 1, 2024 08:08
@st3v3nmw st3v3nmw force-pushed the get-ubuntu-pro-info-on-snap branch from 3075ccb to 8300e24 Compare August 1, 2024 08:15
@st3v3nmw st3v3nmw marked this pull request as ready for review August 1, 2024 08:32
Copy link
Contributor

@Perfect5th Perfect5th left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@st3v3nmw
Copy link
Collaborator Author

st3v3nmw commented Aug 2, 2024

Thanks @Perfect5th. I've made a request for auto-connection here.

@Perfect5th Perfect5th merged commit b2ce9c8 into canonical:main Aug 7, 2024
5 checks passed
@st3v3nmw st3v3nmw deleted the get-ubuntu-pro-info-on-snap branch August 8, 2024 06:24
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.

2 participants