Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix original case, which I broke

  • Loading branch information...
commit 425ba36db330d01267503c9603470cce3c23d3ef 1 parent 156e964
@JoeGermuska authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 cactus/site.py
View
9 cactus/site.py
@@ -75,11 +75,10 @@ def bootstrap(self, skeleton=None):
if skeleton is None:
from .skeleton import data
logging.info("Building from data")
- skeletonFile = tempfile.NamedTemporaryFile(delete=False, suffix='.tar.gz')
- skeletonFile.write(base64.b64decode(data))
- skeletonFile.close()
- skeleton_tarball = skeletonFile.name
- skeletonArchive = tarfile.open(name=skeleton_tarball, mode='r')
+ temp = tempfile.NamedTemporaryFile(delete=False, suffix='.tar.gz')
+ temp.write(base64.b64decode(data))
+ temp.close()
+ skeletonArchive = tarfile.open(name=temp.name, mode='r')
elif os.path.isfile(skeleton):
skeletonFile = skeleton
else: # assume it's a URL
Please sign in to comment.
Something went wrong with that request. Please try again.