Merge "Allow 'Update Instance' action when Configuration Group is attached"

This commit is contained in:
Zuul 2023-02-17 13:52:16 +00:00 committed by Gerrit Code Review
commit 8309206de7

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):