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 <tyler.smith@windriver.com>
This commit is contained in:
Tyler Smith 2018-09-24 13:31:22 -04:00
parent 783a8ee61e
commit ebb40be340
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="starlingx-dashboard"
TIS_PATCH_VER=10
TIS_PATCH_VER=11

View File

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