Skip to content

Commit eff0bef

Browse files
committed
get_series to use base for AppFacade >= 15
1 parent 6d81ce6 commit eff0bef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

juju/application.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,12 @@ async def get_series(self):
368368
log.debug(
369369
'Getting series for %s', self.name)
370370

371-
return (await app_facade.Get(application=self.name)).series
371+
appGetResults = (await app_facade.Get(application=self.name))
372+
if self._facade_version() >= 15:
373+
base_channel = appGetResults.base.channel
374+
track = Channel.parse(base_channel).track
375+
return utils.get_version_series(track)
376+
return appGetResults.series
372377

373378
async def get_config(self):
374379
"""Return the configuration settings dict for this application.

0 commit comments

Comments
 (0)