Skip to content

Commit

Permalink
Merge branch 'main' into fix/list-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici authored Jul 11, 2024
2 parents ff813b5 + c033058 commit aaf6de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion juju/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"zones",
"allocate_public_ip"]

LIST_KEYS = {'tags', 'spaces'}
LIST_KEYS = {'tags', 'spaces', 'zones'}

SNAKE1 = re.compile(r'(.)([A-Z][a-z]+)')
SNAKE2 = re.compile('([a-z0-9])([A-Z])')
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_parse_constraints(self):
self.assertEqual(
_("mem=10G zones=bar,baz tags=tag1 spaces=space1,space2"),
{"mem": 10 * 1024,
"zones": "bar,baz",
"zones": ["bar", "baz"],
"tags": ["tag1"],
"spaces": ["space1", "space2"]}
)
Expand Down

0 comments on commit aaf6de3

Please sign in to comment.