image-info: support analyzing gce image type
Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
800d57fda8
commit
46e15794f0
1 changed files with 5 additions and 1 deletions
|
|
@ -2675,7 +2675,11 @@ def analyse_tarball(path):
|
|||
subprocess.run(command,
|
||||
stdout=sys.stderr,
|
||||
check=True)
|
||||
return analyse_directory(tree)
|
||||
# gce image type contains virtual raw disk inside a tarball
|
||||
if os.path.isfile(f"{tree}/disk.raw"):
|
||||
return analyse_image(f"{tree}/disk.raw")
|
||||
else:
|
||||
return analyse_directory(tree)
|
||||
|
||||
|
||||
def is_compressed(path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue