Fixup slurp module usage when not running as root, fix error handling path in slurp module.

reviewable/pr18780/r1
Michael DeHaan 13 years ago
parent f6d0cc56a0
commit 4a72e71cd7

@ -50,7 +50,7 @@ source = params['src']
if not os.path.exists(source): if not os.path.exists(source):
print json.dumps(dict( print json.dumps(dict(
failed = 1, failed = 1,
msg = "file not found: %s" % metadata msg = "file not found: %s" % source
)) ))
sys.exit(1) sys.exit(1)

Loading…
Cancel
Save