[CRIU] [PATCH] crit/decode: set default opts['nopl'] to False
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Fri May 27 00:40:05 PDT 2016
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 <module>
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 <ptikhomirov at virtuozzo.com>
---
crit/crit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crit/crit b/crit/crit
index 09c59ab..cc3f5ab 100755
--- a/crit/crit
+++ b/crit/crit
@@ -236,7 +236,7 @@ explorers = { 'ps': explore_ps, 'fds': explore_fds, 'mems': explore_mems }
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',
--
2.5.5
More information about the CRIU
mailing list