Permalink
Browse files

wrong way

  • Loading branch information...
1 parent 766dcb4 commit 4344ebf6907eea5b0c59f700a1fc545775806b50 @buzztroll buzztroll committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cloudinitd/bootfabtasks.py
@@ -116,10 +116,10 @@ def bootpgm(pgm=None, args=None, conf=None, env_conf=None, output=None, stagedir
relpgm = os.path.basename(pgm)
destpgm = "%s/%s" % (stagedir, relpgm)
if local_exe:
- put_pgm(pgm, destpgm, mode=0755)
- else:
put_pgm(pgm, destpgm)
os.chmod(destpgm, 0755)
+ else:
+ put_pgm(pgm, destpgm, mode=0755)
tarname = _iftar(relpgm)
if tarname:
destpgm = _tartask(stagedir, tarname, destpgm, run_pgm=pgm_to_use)

0 comments on commit 4344ebf

Please sign in to comment.