-
Committer:
Felipe Reyes
-
Date:
2016-11-28 16:13:21 UTC
-
Revision ID:
felipe.reyes@canonical.com-20161128161321-zhy961k3cgthim5y
Format tags and spaces constraints as a list
According to juju's reference constraints[0], tags and spaces are expected
to be a list of strings. juju cli uses "item1,item2" to define lists, this
patch allows to silently transform those strings into lists, as a collateral
benefit single item strings (e.g. "tag1") will also get transformed to a list.
Valid new uses of constraints dict:
{"tags": "tag1"}
{"tags": "tag1,tag2"}
[0] https://jujucharms.com/docs/2.0/reference-constraints