X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=modules%2Flibjuju%2Fjuju%2Ftag.py;h=319e8f8bc2ceb56843871182ccb1b27a911dc4cf;hb=refs%2Fheads%2Fv4.0;hp=25142293141ca15eb390af5a15a0dafa91acd362;hpb=68858c1915122c2dbc8999a5cd3229694abf5f3a;p=osm%2FN2VC.git 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)