mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Add more uniqueness to jobid
Before this change there was a non zero chance that two requests could be received at the same millisecond and have the same jobid. Added the username as a prefix to the job id
This commit is contained in:
parent
a4231cc6f1
commit
e0fac0bb6c
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ class ABS
|
|||
conn = Http.get_conn(verbose, url)
|
||||
conn.headers['X-AUTH-TOKEN'] = token if token
|
||||
|
||||
saved_job_id = DateTime.now.strftime('%Q')
|
||||
saved_job_id = user + "-" + DateTime.now.strftime('%Q')
|
||||
vmpooler_config = Utils.get_vmpooler_service_config(config['vmpooler_fallback'])
|
||||
req_obj = {
|
||||
:resources => os_types,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue