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 <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2019-06-06 16:37:59 -05:00
parent 1611948e2d
commit d599a0f4ce

View File

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