X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Fjuju%2Ftag.py;h=319e8f8bc2ceb56843871182ccb1b27a911dc4cf;hp=25142293141ca15eb390af5a15a0dafa91acd362;hb=c3e6c2ec9a1fddfc8e9bd31509b366e633b6d99e;hpb=1a15d1c84fc826fa7996c1c9d221a324edd33432 diff --git a/modules/libjuju/juju/tag.py b/modules/libjuju/juju/tag.py index 2514229..319e8f8 100644 --- a/modules/libjuju/juju/tag.py +++ b/modules/libjuju/juju/tag.py @@ -1,3 +1,8 @@ +# TODO: Tags should be a proper class, so that we can distinguish whether +# something is already a tag or not. For example, 'user-foo' is a valid +# username, but is ambiguous with the already-tagged username 'foo'. + + def _prefix(prefix, s): if s and not s.startswith(prefix): return '{}{}'.format(prefix, s)