From d599a0f4cec538b60f7d953cd89e0603cc1bdb5a Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Thu, 6 Jun 2019 16:37:59 -0500 Subject: [PATCH] Removing the is_kubernetes checks The system capabilities check for is_kubernetes has not been optional for quite a while. The inventory component had an unused utility method that was querying it, and has been removed. Change-Id: Ibbe3591fab435fcf8647871acc6cbf9494a406b6 Story: 2004764 Task: 33604 Signed-off-by: Al Bailey --- inventory/inventory/inventory/api/controllers/v1/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/inventory/inventory/inventory/api/controllers/v1/utils.py b/inventory/inventory/inventory/api/controllers/v1/utils.py index 42a19493..ab0f2c7c 100755 --- a/inventory/inventory/inventory/api/controllers/v1/utils.py +++ b/inventory/inventory/inventory/api/controllers/v1/utils.py @@ -259,13 +259,6 @@ def get_distributed_cloud_role(dbapi=None): return system.distributed_cloud_role -def is_kubernetes_config(dbapi=None): - if not dbapi: - dbapi = pecan.request.dbapi - system = dbapi.system_get_one() - return system.capabilities.get('kubernetes_enabled', False) - - def is_aio_duplex_system(): return get_system_mode() == constants.SYSTEM_MODE_DUPLEX and \ SystemHelper.get_product_build() == constants.TIS_AIO_BUILD