From 62e7a654599b2e2243f53f833ec969715f7ae682 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Thu, 5 Jul 2018 21:53:23 +1000 Subject: [PATCH] k8s_facts trivially supports check_mode (#42335) --- lib/ansible/modules/clustering/k8s/k8s_facts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/clustering/k8s/k8s_facts.py b/lib/ansible/modules/clustering/k8s/k8s_facts.py index 486096f746..8586e25946 100644 --- a/lib/ansible/modules/clustering/k8s/k8s_facts.py +++ b/lib/ansible/modules/clustering/k8s/k8s_facts.py @@ -136,6 +136,11 @@ import copy class KubernetesFactsModule(KubernetesAnsibleModule): + def __init__(self, *args, **kwargs): + KubernetesAnsibleModule.__init__(self, *args, + supports_check_mode=True, + **kwargs) + def execute_module(self): self.client = self.get_api_client()