Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is how hostId is generated, a hash between the project id and the hypervisor name.

import hashlib
sha_hash = hashlib.sha224(projectid + hypervisorname)  
print sha_hash.hexdigest()