Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bad bug in global files.

  • Loading branch information...
commit 94334df82bd7ab2952cbeabaf59383155479d0e6 1 parent 963d87b
@monokrome authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 genroles.py
View
8 genroles.py
@@ -6,7 +6,7 @@
import os
import gzip
-COMPRESS = True
+COMPRESS = False
def check_dir(path):
@@ -56,7 +56,7 @@ def project_path(identifier):
current_file = open(filename, 'r')
data = current_file.read()
- global_files.append(email.mime.text.MIMEText(data))
+ global_files.append(data)
# Create a directory to store our file output in
if not os.path.exists(dist_dir):
@@ -84,8 +84,8 @@ def project_path(identifier):
mime_output = email.mime.multipart.MIMEMultipart()
# Include all "global" requirements.
- for mime_file in global_files:
- contents = fill_vars(role_vars, str(mime_file))
+ for file_data in global_files:
+ contents = fill_vars(role_vars, file_data)
mime_output.attach(email.mime.text.MIMEText(contents))
for filename in glob.iglob(os.path.join(role_dir, '*')):
Please sign in to comment.
Something went wrong with that request. Please try again.