Skip to content

Commit

Permalink
Merge branch 'master' into fix-ldap-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkukral committed Mar 6, 2018
2 parents e7ba9f0 + 66e5715 commit e901805
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions kqueen/engines/manual.py
Expand Up @@ -44,14 +44,13 @@ def cluster_get(self):
"""
Implementation of :func:`~kqueen.engines.base.BaseEngine.cluster_get`
"""
if self.cluster.kubeconfig:
try:
client = KubernetesAPI(cluster=self.cluster)
client.get_version()
except Exception as e:
msg = 'Fetching data from backend for cluster {} failed with following reason:'.format(self.cluster.id)
logger.exception(msg)
return {'state': config.get('CLUSTER_ERROR_STATE')}
try:
client = KubernetesAPI(cluster=self.cluster)
client.get_version()
except Exception as e:
msg = 'Fetching data from backend for cluster {} failed with following reason:'.format(self.cluster.id)
logger.exception(msg)
return {'state': config.get('CLUSTER_ERROR_STATE')}
return {'state': config.get('CLUSTER_OK_STATE')}

def provision(self):
Expand Down

0 comments on commit e901805

Please sign in to comment.