We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b685df8 commit 7fa113fCopy full SHA for 7fa113f
1 file changed
juju/model.py
@@ -1774,7 +1774,8 @@ async def deploy(
1774
resources = await self._add_charmhub_resources(res.app_name,
1775
identifier,
1776
add_charm_res.charm_origin)
1777
- if self.charmhub.is_subordinate(url.name):
+ is_sub = await self.charmhub.is_subordinate(url.name)
1778
+ if is_sub:
1779
if num_units > 1:
1780
raise JujuError("cannot use num_units with subordinate application")
1781
num_units = 0
0 commit comments