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:
parent
dfd8640910
commit
d552ce7be2
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue