mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(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:
parent
f4f0904168
commit
3050e99fd6
2 changed files with 60 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue