mirror of
https://github.com/openshift/community.okd.git
synced 2026-05-08 06:02:36 +00:00
Fix sanity failures (#220)
* Fix sanity failures * Add github workflows
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user