1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00

Change id form

This commit is contained in:
Tlams 2018-03-20 19:26:46 +00:00
parent dfd8640910
commit d552ce7be2

View file

@ -164,8 +164,8 @@ class Instance:
for nodeid, count in sorted_nodes.items():
""" GENERATE UNIQ COMMAND ID """
randtext = ''.join(random.choice('AZERTYUIOPQSDFGHJKLMWXCVBN') for i in range(8))
command_id = "Please, do not change or delete this ID \n" \
"id={0}_{1}".format(time.time(), randtext)
command_id = "-- Please, do not change or delete this ID -- \n" \
"id=\"{0}_{1}\"\n------------------\n".format(time.time(), randtext)
""" Find information by id mongodb"""
realnode = core.generalsearch('{ "_id": {id} }'.format(id=nodeid))