diff options
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 6ad9918..e8c5edf 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1225,7 +1225,7 @@ def action_image_create(): for part in r.json()['partitions'][1:]: form.os.choices.append( - (f"{part.get('disk')} {part.get('partition')}", + (f"{part.get('disk')} {part.get('partition')} {part.get('code')}", f"Disk {part.get('disk')} | Partition {part.get('partition')} " f"| {PART_TYPE_CODES[part.get('code')]} " f"{FS_CODES[part.get('filesystem')]}") @@ -1287,7 +1287,7 @@ def action_image_update(): r = server.get('/client/setup', payload={'client': list(ips)}) for part in r.json()['partitions'][1:]: form.os.choices.append( - (f"{part.get('disk')} {part.get('partition')}", + (f"{part.get('disk')} {part.get('partition')} {part.get('code')}", f"Disk {part.get('disk')} | Partition {part.get('partition')} " f"| {PART_TYPE_CODES[part.get('code')]} " f"{FS_CODES[part.get('filesystem')]}") |