Support Charms facade version 7 #1157
Labels
area/endpoint
hint/3.x
going on main branch
kind/feature
suggests new feature or enhancement
kind/wishlist
requested feature
priority/normal
normal priority
Description
The existing schema files contain a definition for Charms facade version 7, which
python-libjuju
generates code for (in_client7.py
). Unfortunately,python-libjuju
itself doesn't support this facade version (yet!). At least one place where changes are needed is supportingjuju.client.CharmsFacade.ResolveCharms
version 7, which will return a differently shaped result from Juju than version 6. This comes up injuju.model.Model._resolve_charm
, where a result from version 7 fails on this line with aKeyError
:Version 7 results have
'supported_bases'
instead (see #1156).Below is an example of the response received from version 7, where we currently fail with a
KeyError
. We can't just use'supported_bases'
instead of'supported_series'
as it is passed tojuju.utils.series_selector
, which doesn't support bases.Resolving #1156 by implementing support for bases will almost resolve this issue -- we'd just need to add
Charms
version 7 tojuju.client.connection.client_facades
(and ensure it isn't manually marked to be excluded).Urgency
It would save from a weird workaround
Code I'd Like to Run
The text was updated successfully, but these errors were encountered: