Skip to content

Commit

Permalink
netbox-community#15712: add imageattachments to vms
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedius committed Apr 19, 2024
1 parent d0f0782 commit 9b65f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions netbox/templates/virtualization/virtualmachine.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ <h5 class="card-header">
</h5>
{% htmx_table 'ipam:service_list' virtual_machine_id=object.pk %}
</div>
{% include 'inc/panels/image_attachments.html' %}
{% plugin_right_page object %}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions netbox/virtualization/models/virtualmachines.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from extras.querysets import ConfigContextModelQuerySet
from netbox.config import get_config
from netbox.models import NetBoxModel, PrimaryModel
from netbox.models.features import ContactsMixin
from netbox.models.features import ContactsMixin, ImageAttachmentsMixin
from utilities.fields import CounterCacheField, NaturalOrderingField
from utilities.ordering import naturalize_interface
from utilities.query_functions import CollateAsChar
Expand All @@ -29,7 +29,7 @@
)


class VirtualMachine(ContactsMixin, RenderConfigMixin, ConfigContextModel, PrimaryModel):
class VirtualMachine(ContactsMixin, ImageAttachmentsMixin, RenderConfigMixin, ConfigContextModel, PrimaryModel):
"""
A virtual machine which runs inside a Cluster.
"""
Expand Down

0 comments on commit 9b65f97

Please sign in to comment.