]>
Commit | Line | Data |
---|---|---|
23102ed6 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
95259824 | 2 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> |
83faa3fe TL |
3 | Date: Mon, 6 Apr 2020 12:16:39 +0200 |
4 | Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots | |
95259824 | 5 | |
b855dce7 | 6 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
95259824 WB |
7 | --- |
8 | qemu-img.c | 3 ++- | |
9 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/qemu-img.c b/qemu-img.c | |
83faa3fe | 12 | index 821cbf610e..667c540a89 100644 |
95259824 WB |
13 | --- a/qemu-img.c |
14 | +++ b/qemu-img.c | |
83faa3fe | 15 | @@ -2821,7 +2821,8 @@ static int img_info(int argc, char **argv) |
6838f038 WB |
16 | list = collect_image_info_list(image_opts, filename, fmt, chain, |
17 | force_share); | |
95259824 WB |
18 | if (!list) { |
19 | - return 1; | |
9714cead | 20 | + // return success if snapshot does not exist |
95259824 WB |
21 | + return 0; |
22 | } | |
23 | ||
24 | switch (output_format) { |