Skip to content

Commit

Permalink
ensure resources dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint Savage committed Apr 6, 2018
1 parent 45c5738 commit faf790f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions linchpin/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ def _write_distilled_context(self, run_data):
dist_roles = self.get_cfg('distiller')

resources_path = self.get_evar('resources_folder')
context_file = '{0}/{1}/{2}'.format(self.workspace,
resources_path,
'linchpin.distilled')
context_path = '{0}/{1}'.format(self.workspace, resources_path)
if not os.path.exists(context_path):
os.makedirs(context_path)
context_file = '{0}/{1}'.format(context_path, 'linchpin.distilled')

roles = []
dist_data = {}
Expand Down

0 comments on commit faf790f

Please sign in to comment.