Skip to content

Commit

Permalink
(devstructure#132) Fix Chef execute resource names.
Browse files Browse the repository at this point in the history
Now they match what the references from services expect.
  • Loading branch information
rcrowley committed Jan 6, 2013
1 parent 20434ed commit d470871
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blueprint/frontend/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ def source(dirname, filename, gen_content, url):
backup=False,
source=pathname[1:])
if '.zip' == pathname[-4:]:
c.execute('unzip "{0}"'.format(pathname), cwd=dirname)
c.execute('{0}'.format(pathname),
command='unzip "{0}"'.format(pathname),
cwd=dirname)
else:
c.execute('tar xf "{0}"'.format(pathname), cwd=dirname)
c.execute('{0}'.format(pathname),
command='tar xf "{0}"'.format(pathname),
cwd=dirname)

def file(pathname, f):
"""
Expand Down

0 comments on commit d470871

Please sign in to comment.