Fixing a bug where the wrong number of arguments were passed to compile_file.
It happened to work when credentials evaluated to False.
@@ -135,7 +135,7 @@ def storage_runtime(uri, control_uri, attributes=None, dispatch=False):
def compile_script(scriptfile, credentials):
_log.debug("Compiling %s ..." % scriptfile)
from calvin.Tools.cscompiler import compile_file
- app_info, issuetracker = compile_file(scriptfile, False, credentials)
+ app_info, issuetracker = compile_file(scriptfile, False, False, credentials)
if issuetracker.error_count:
fmt = "{type!c}: {reason} {script} {line}:{col}"
for error in issuetracker.formatted_errors(sort_key='line', custom_format=fmt, script=scriptfile, line=0, col=0):
