expand tcolor early to avoid listing in volume props

This commit is contained in:
ed 2024-05-05 18:52:02 +00:00
parent fdda567f50
commit c1918bc36c
2 changed files with 5 additions and 1 deletions

View file

@ -1781,7 +1781,7 @@ class AuthSrv(object):
if vol.flags.get("og"):
self.args.uqe = True
zs = str(vol.flags.get("tcolor", ""))
zs = str(vol.flags.get("tcolor", "")).lstrip("#")
if len(zs) == 3: # fc5 => ffcc55
vol.flags["tcolor"] = "".join([x * 2 for x in zs])

View file

@ -557,6 +557,10 @@ class SvcHub(object):
except:
raise Exception("invalid --mv-retry [%s]" % (self.args.mv_retry,))
al.tcolor = al.tcolor.lstrip('#')
if len(al.tcolor) == 3: # fc5 => ffcc55
al.tcolor = "".join([x * 2 for x in al.tcolor])
return True
def _ipa2re(self, txt) -> Optional[re.Pattern]: