Skip to content

Commit

Permalink
Fix issue when *NOT* loading old clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
arcimboldo committed May 25, 2015
1 parent 4a2c326 commit d7f0c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions elasticluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ def __update_option(self, cfg, key, attr):
def keys(self):
"""Only expose some of the attributes when using as a dictionary"""
keys = Struct.keys(self)
keys.remove('_setup_provider')
keys.remove('_cloud_provider')
keys.remove('repository')
keys.remove('known_hosts_file')
for key in ('_setup_provider', '_cloud_provider',
'repository', 'known_hosts_file'):
if key in keys:
keys.remove(key)
return keys

def update_config(self, cluster_config, login_config):
Expand Down

0 comments on commit d7f0c4c

Please sign in to comment.