Fix syntax of validate_token in helpers

This change fixes an error in validate_token where hset does not have the correct number of parameters. Without this change validate_token causes a error.
This commit is contained in:
kirby@puppetlabs.com 2020-11-06 13:17:52 -08:00
parent cfd6a5f991
commit 21bf9dbc1c

View file

@ -18,7 +18,7 @@ module Vmpooler
def validate_token(backend)
if valid_token?(backend)
backend.hset("vmpooler__token__#{request.env['HTTP_X_AUTH_TOKEN']}last#{Time.now}")
backend.hset("vmpooler__token__#{request.env['HTTP_X_AUTH_TOKEN']}", 'last', Time.now)
return true
end