We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4834b38 commit 9c5f8a8Copy full SHA for 9c5f8a8
1 file changed
juju/utils.py
@@ -419,7 +419,7 @@ def parse_base_arg(base):
419
:param base str : The base to deploy a charm (e.g. ubuntu@22.04)
420
"""
421
client.CharmBase()
422
- if not isinstance(base, str) or "@" not in base:
+ if not (isinstance(base, str) and "@" in base):
423
raise errors.JujuError(f"expected base string to contain os and channel separated by '@', got : {base}")
424
425
name, channel = base.split('@')
0 commit comments