[FIX] script todo: list VMs before asking which IP to show
The "Show a VM IP address" entry prompted for a VM name with no visible list, so the user had to guess the name/ID. It now runs virsh list --all first and asks for a "VM name or ID", making the expected input obvious. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a202143c30
commit
0d985ab449
2 changed files with 9 additions and 1 deletions
|
|
@ -895,7 +895,11 @@ class TODO:
|
|||
self.execute.exec_command_live(cmd, source_erplibre=False)
|
||||
|
||||
def _qemu_show_ip(self):
|
||||
name = input(t("VM name: ")).strip()
|
||||
# Affiche d'abord les VM (avec leur ID) pour que l'utilisateur sache
|
||||
# quel nom/ID saisir, puis demande lequel.
|
||||
self._qemu_list_vms()
|
||||
print()
|
||||
name = input(t("VM name or ID: ")).strip()
|
||||
if not name:
|
||||
print(t("VM name is required!"))
|
||||
return
|
||||
|
|
|
|||
|
|
@ -1041,6 +1041,10 @@ TRANSLATIONS = {
|
|||
"fr": "Nom de la VM : ",
|
||||
"en": "VM name: ",
|
||||
},
|
||||
"VM name or ID: ": {
|
||||
"fr": "Nom ou ID de la VM : ",
|
||||
"en": "VM name or ID: ",
|
||||
},
|
||||
"RAM in MB (blank = version minimum): ": {
|
||||
"fr": "RAM en Mo (vide = minimum de la version) : ",
|
||||
"en": "RAM in MB (blank = version minimum): ",
|
||||
|
|
|
|||
Loading…
Reference in a new issue