From f7ac3a3c4e7e194655a26a4c8a06d03fe7ddbf64 Mon Sep 17 00:00:00 2001 From: Dylan McCulloch Date: Wed, 4 Jan 2023 16:28:15 +1100 Subject: [PATCH] Allow 'Update Instance' action when Configuration Group is attached Task: 47103 Story: 2010508 Change-Id: I945acea45db9b93f8c0b60ff77236f5bd36bde61 --- trove_dashboard/content/databases/tables.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trove_dashboard/content/databases/tables.py b/trove_dashboard/content/databases/tables.py index 3b7c565..e28ed75 100644 --- a/trove_dashboard/content/databases/tables.py +++ b/trove_dashboard/content/databases/tables.py @@ -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):