1
0
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:
Neal 2023-12-02 05:09:15 -07:00 committed by GitHub
parent 3d5f0e7f87
commit 7e91a72bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)