From 39cbd9167274d7adbb9112fec30b6cbb26bd4076 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Fri, 27 May 2016 10:40:00 +0300 Subject: [PATCH] crit/decode: set default opts['nopl'] to False to fix error: ./crit/crit decode -i test/dump/zdtm/static/maps04/118/1/stats-dump Traceback (most recent call last): File "./crit/crit", line 276, in main() File "./crit/crit", line 273, in main opts["func"](opts) File "./crit/crit", line 28, in decode img = pycriu.images.load(inf(opts), opts['pretty'], opts['nopl']) KeyError: 'nopl' Signed-off-by: Pavel Tikhomirov Signed-off-by: Pavel Emelyanov --- crit/crit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crit/crit b/crit/crit index 09c59ab2c..cc3f5ab22 100755 --- a/crit/crit +++ b/crit/crit @@ -236,7 +236,7 @@ def main(): decode_parser.add_argument('-o', '--out', help = 'where to put criu image in json format (stdout by default)') - decode_parser.set_defaults(func=decode) + decode_parser.set_defaults(func=decode, nopl=False) # Encode encode_parser = subparsers.add_parser('encode',