mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B OpenNebula/one#6391: fix key generation (#2854)
This commit is contained in:
parent
3d5f0e7f87
commit
7e91a72bc1
@ -2028,7 +2028,7 @@ end
|
||||
:unitNumber => unumber
|
||||
}
|
||||
if @vi_client.vim.serviceContent.about.apiVersion.to_f >= 7.0
|
||||
card_spec[:key] = Time.now.utc.strftime('%m%d%M%S%L').to_i
|
||||
card_spec[:key] = -100 - card_num.to_i
|
||||
end
|
||||
|
||||
if (limit || rsrv) && (limit > 0)
|
||||
@ -2175,7 +2175,8 @@ end
|
||||
:addressType => 'generated'
|
||||
}
|
||||
if @vi_client.vim.serviceContent.about.apiVersion.to_f >= 7.0
|
||||
card_spec[:key] = Time.now.utc.strftime('%m%d%M%S%L').to_i
|
||||
card_spec[:key] = -100 - card_num.to_i
|
||||
end
|
||||
end
|
||||
|
||||
if (limit || rsrv) && (limit > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user