Skip to content

Commit

Permalink
revert data_changed guard on create_kubeconfig (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwmonroe authored and Cynerva committed Jul 30, 2019
1 parent d3e8d8c commit a565726
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions reactive/kubernetes_master.py
Expand Up @@ -1471,19 +1471,8 @@ def build_kubeconfig(server):

# Create an absolute path for the kubeconfig file.
kubeconfig_path = os.path.join(os.sep, 'home', 'ubuntu', 'config')
# Create the kubeconfig on this system so users can access the cluster.

try:
with open(kubeconfig_path, 'r') as conf:
config_matrix = {
'keystone': ks,
'conf': conf.read()
}
if not data_changed('kube-config-build', config_matrix):
return
except FileNotFoundError:
pass

# Create the kubeconfig on this system so users can access the cluster.
hookenv.log('Writing kubeconfig file.')

if ks:
Expand Down

0 comments on commit a565726

Please sign in to comment.