Auth method for the k8s lookup plugin now matches other modules (#37533)

This commit is contained in:
Fabian von Feilitzsch 2018-03-19 15:00:05 -04:00 committed by Chris Houseknecht
parent ffd1200948
commit 716e170821

View file

@ -88,7 +88,11 @@ class KubernetesLookup(object):
self.kind = to_snake(self.kind)
self.helper = self.get_helper(self.api_version, self.kind)
auth_args = ('host', 'api_key', 'kubeconfig', 'context', 'username', 'password',
'cert_file', 'key_file', 'ssl_ca_cert', 'verify_ssl')
for arg in AUTH_ARG_SPEC:
if arg in auth_args and kwargs.get(arg) is not None:
self.connection[arg] = kwargs.get(arg)
try: