Confirm if we should use library for apt operations
Bug #1962335 reported by
Tom Haddon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ubuntu-advantage |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Some charms do the following:
`from charms.
We should confirm if this is the recommended approach and if so implement, bearing in mind how we'd update these libraries as part of charm publishing workflow.
See https:/
Related branches
~jfguedez/charm-ubuntu-advantage:bug/1962335
- Tom Haddon: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 1548 lines (+1363/-45)4 files modifiedlib/charms/operator_libs_linux/v0/apt.py (+1329/-0)
run_tests (+4/-3)
src/charm.py (+3/-13)
tests/test_charm.py (+27/-29)
To post a comment you must log in.
Looking at the current SDK docs, there's a new section (at least to me) about libraries [0].
There is an entry for apt, which points to this "charm" [1][2] that is essentially a collection of libraries. The code from that mongodb charm link seems to come from there.
As it's included in the official documentation, it seems to be the official library for this.
[0] https:/ /juju.is/ docs/sdk/ library- index /charmhub. io/operator- libs-linux /github. com/canonical/ operator- libs-linux
[1] https:/
[2] https:/