Allow 'Update Instance' action when Configuration Group is attached

Task: 47103
Story: 2010508
Change-Id: I945acea45db9b93f8c0b60ff77236f5bd36bde61
This commit is contained in:
Dylan McCulloch 2023-01-04 16:28:15 +11:00
parent e1418f2294
commit f7ac3a3c4e

View File

@ -690,8 +690,7 @@ class UpdateInstance(tables.LinkAction):
classes = ("btn-attach-config", "ajax-modal")
def allowed(self, request, instance=None):
return (instance.status in ACTIVE_STATES and
not hasattr(instance, 'configuration'))
return (instance.status in ACTIVE_STATES)
class InstancesTable(tables.DataTable):