mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
coredump: convert indentation to spaces
Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
parent
bf8a3c9f62
commit
c71a81a6bd
@ -3,6 +3,7 @@ import os
|
||||
|
||||
import criu_coredump
|
||||
|
||||
|
||||
def coredump(opts):
|
||||
generator = criu_coredump.coredump_generator()
|
||||
cores = generator(os.path.realpath(opts['in']))
|
||||
@ -20,20 +21,21 @@ def main():
|
||||
|
||||
parser.add_argument('-i',
|
||||
'--in',
|
||||
default = '.',
|
||||
help = 'directory where to get images from')
|
||||
default='.',
|
||||
help='directory where to get images from')
|
||||
parser.add_argument('-p',
|
||||
'--pid',
|
||||
type = int,
|
||||
help = 'generate coredump for specific pid(all pids py default)')
|
||||
type=int,
|
||||
help='generate coredump for specific pid(all pids py default)')
|
||||
parser.add_argument('-o',
|
||||
'--out',
|
||||
default = '.',
|
||||
help = 'directory to write coredumps to')
|
||||
default='.',
|
||||
help='directory to write coredumps to')
|
||||
|
||||
opts = vars(parser.parse_args())
|
||||
|
||||
coredump(opts)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user