1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

B OpenNebula/one#6391: fix key generation (#2854)

(cherry picked from commit 7e91a72bc1c1886982769fb7722512eb757eed40)
This commit is contained in:
Neal 2023-12-02 05:09:15 -07:00 committed by Tino Vázquez
parent c14cc13d14
commit 44be409ae2

View File

@ -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)