Skip to content

Commit

Permalink
Merge pull request #262 from pinguinkiste/default-config
Browse files Browse the repository at this point in the history
Do not create default config if config.d directory exists
  • Loading branch information
riccardomurri committed Jun 1, 2016
2 parents b92348f + 2d88f2e commit 73c3075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticluster/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def pre_run(self):
"%s\n" % (str(ex)))
sys.exit(1)

# If no configuration file was specified and default does not exists...
if not os.path.isfile(self.params.config):
# If no configuration file was specified and default does not exists and the user did not create a config dir...
if not os.path.isfile(self.params.config) and not os.path.isdir(self.params.config + '.d'):
if self.params.config == self.default_configuration_file:
# Copy the default configuration file to the user's home
if not os.path.exists(os.path.dirname(self.params.config)):
Expand Down

0 comments on commit 73c3075

Please sign in to comment.