From ebb40be3401599a812961696e4f0b0362f59b4fc Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Mon, 24 Sep 2018 13:31:22 -0400 Subject: [PATCH] Horizon: Create Memory Profile button is missing in Platform Host Details There is an issue where mem profiles can be created for non-compute controllers by the cli but not via the gui. I have removed this restriction Closes-Bug: 1792631 Change-Id: I4dd98a6a1a580c14320f782d78ceb653544a8c92 Signed-off-by: Tyler Smith --- starlingx-dashboard/centos/build_srpm.data | 2 +- .../dashboards/admin/inventory/memories/tables.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/starlingx-dashboard/centos/build_srpm.data b/starlingx-dashboard/centos/build_srpm.data index 11b88dea..8c7b683b 100644 --- a/starlingx-dashboard/centos/build_srpm.data +++ b/starlingx-dashboard/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="starlingx-dashboard" -TIS_PATCH_VER=10 +TIS_PATCH_VER=11 diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/memories/tables.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/memories/tables.py index 1777f91a..88d02a0c 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/memories/tables.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/memories/tables.py @@ -46,7 +46,7 @@ class CreateMemoryProfile(tables.LinkAction): def allowed(self, request, datum): host = self.table.kwargs['host'] - if host.subfunctions and 'compute' not in host.subfunctions: + if host.subfunctions and 'storage' in host.subfunctions: return False return (host.invprovision == 'provisioned' and not stx_api.sysinv.is_system_mode_simplex(request))