analyze-migration.py: fix find() type error
commit13ae8cdb9ba2c5d7a0bec155d9415dff8d0324c6
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 27 Nov 2019 10:10:37 +0000 (27 14:10 +0400)
committerCleber Rosa <crosa@redhat.com>
Mon, 16 Dec 2019 15:59:50 +0000 (16 10:59 -0500)
tree01de8e8a760eeea0b6235d2e228e00eba232260f
parentb67d22aa7003310185f9571c27a8090d9314a6a1
analyze-migration.py: fix find() type error

Traceback (most recent call last):
  File "../scripts/analyze-migration.py", line 611, in <module>
    dump.read(desc_only = True)
  File "../scripts/analyze-migration.py", line 513, in read
    self.load_vmsd_json(file)
  File "../scripts/analyze-migration.py", line 556, in load_vmsd_json
    vmsd_json = file.read_migration_debug_json()
  File "../scripts/analyze-migration.py", line 89, in read_migration_debug_json
    nulpos = data.rfind("\0")
TypeError: argument should be integer or bytes-like object, not 'str'

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20191127101038.327080-2-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
scripts/analyze-migration.py