Fix sanity failures (#220)

* Fix sanity failures

* Add github workflows
This commit is contained in:
GomathiselviS
2024-01-31 11:00:43 -05:00
committed by GitHub
parent 0b827432a8
commit 69a9541f4b
19 changed files with 118 additions and 13 deletions

View File

@@ -133,9 +133,10 @@ class InventoryModule(K8sInventoryModule):
transport = 'oc'
def check_kubernetes_collection(self):
if not HAS_KUBERNETES_COLLECTION:
K8sInventoryException("The kubernetes.core collection must be installed")
raise K8sInventoryException(
"The kubernetes.core collection must be installed"
)
def fetch_objects(self, connections):
self.check_kubernetes_collection()