Skip to content

Commit

Permalink
Merge branch 'bugfix/ghi-#14-snowblock-relative-configuration-file-pa…
Browse files Browse the repository at this point in the history
…th-mismatch' into develop
  • Loading branch information
arcticicestudio committed Jan 7, 2017
2 parents 850a72b + 86f2381 commit 4455d20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snowsaw/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ def main():
if os.path.isdir(os.path.join(options.snowblocks_directory[0], snowblock))]

for snowblock in snowblocks:
if os.path.isfile(os.path.join(snowblock, snowblock_config_filename)):
if os.path.isfile(os.path.join(options.snowblocks_directory[0], snowblock, snowblock_config_filename)):
log.info("❄ {}".format(snowblock))
tasks = read_config(os.path.join(snowblock, snowblock_config_filename))
tasks = read_config(os.path.join(options.snowblocks_directory[0], snowblock, snowblock_config_filename))

if not isinstance(tasks, list):
raise ReadingError("Configuration file must be a list of tasks")

dispatcher = Dispatcher(snowblock)
dispatcher = Dispatcher(os.path.join(options.snowblocks_directory[0], snowblock))
success = dispatcher.dispatch(tasks)
if success:
log.info("==> All tasks executed successfully\n")
Expand Down

0 comments on commit 4455d20

Please sign in to comment.