Skip to content

Commit aaf6de3

Browse files
authored
Merge branch 'main' into fix/list-secrets
2 parents ff813b5 + c033058 commit aaf6de3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

juju/constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"zones",
5555
"allocate_public_ip"]
5656

57-
LIST_KEYS = {'tags', 'spaces'}
57+
LIST_KEYS = {'tags', 'spaces', 'zones'}
5858

5959
SNAKE1 = re.compile(r'(.)([A-Z][a-z]+)')
6060
SNAKE2 = re.compile('([a-z0-9])([A-Z])')

tests/unit/test_constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_parse_constraints(self):
6060
self.assertEqual(
6161
_("mem=10G zones=bar,baz tags=tag1 spaces=space1,space2"),
6262
{"mem": 10 * 1024,
63-
"zones": "bar,baz",
63+
"zones": ["bar", "baz"],
6464
"tags": ["tag1"],
6565
"spaces": ["space1", "space2"]}
6666
)

0 commit comments

Comments
 (0)