(MAINT) Normalise all tokens for stats

/api/v1/token, /token, /img and /lib endpoints need to be normalised the
same way that /vm and /ondemandvm endpoints are handled.
This commit is contained in:
John O'Connor 2020-08-21 17:07:35 +01:00
parent f4f0904168
commit 3050e99fd6
2 changed files with 60 additions and 1 deletions

View file

@ -114,6 +114,9 @@ module Vmpooler
path
.gsub(%r{/vm/.+$}, '/vm')
.gsub(%r{/ondemand/.+$}, '/ondemand')
.gsub(%r{/token/.+$}, '/token')
.gsub(%r{/lib/.+$}, '/lib')
.gsub(%r{/img/.+$}, '/img')
end
end
end