Skip to content

Commit

Permalink
Fixes netbox-community#17986: Correct label for disk size when bulk e…
Browse files Browse the repository at this point in the history
…diting virtual machines (netbox-community#17992)

* Fixes netbox-community#17986: Correct label for disk size when bulk editing virtual machines

* Correct label for VirtualDisk.size
  • Loading branch information
jeremystretch authored and jsenecal committed Nov 12, 2024
1 parent 7daac5c commit 48b1c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions netbox/virtualization/forms/bulk_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class VirtualMachineBulkEditForm(NetBoxModelBulkEditForm):
)
disk = forms.IntegerField(
required=False,
label=_('Disk (GB)')
label=_('Disk (MB)')
)
description = forms.CharField(
label=_('Description'),
Expand Down Expand Up @@ -331,7 +331,7 @@ class VirtualDiskBulkEditForm(NetBoxModelBulkEditForm):
)
size = forms.IntegerField(
required=False,
label=_('Size (GB)')
label=_('Size (MB)')
)
description = forms.CharField(
label=_('Description'),
Expand Down
2 changes: 1 addition & 1 deletion netbox/virtualization/forms/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class VirtualDiskFilterForm(NetBoxModelFilterSetForm):
label=_('Virtual machine')
)
size = forms.IntegerField(
label=_('Size (GB)'),
label=_('Size (MB)'),
required=False,
min_value=1
)
Expand Down

0 comments on commit 48b1c7b

Please sign in to comment.