2018-02-19 12:38:54 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2017-04-05 11:49:19 +03:00
|
|
|
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
2020-04-07 17:53:19 +03:00
|
|
|
Date: Mon, 6 Apr 2020 12:16:39 +0200
|
|
|
|
Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots
|
2017-04-05 11:49:19 +03:00
|
|
|
|
2019-06-06 13:58:15 +03:00
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
2017-04-05 11:49:19 +03:00
|
|
|
---
|
|
|
|
qemu-img.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/qemu-img.c b/qemu-img.c
|
2020-04-07 17:53:19 +03:00
|
|
|
index 821cbf610e..667c540a89 100644
|
2017-04-05 11:49:19 +03:00
|
|
|
--- a/qemu-img.c
|
|
|
|
+++ b/qemu-img.c
|
2020-04-07 17:53:19 +03:00
|
|
|
@@ -2821,7 +2821,8 @@ static int img_info(int argc, char **argv)
|
2018-02-22 14:34:57 +03:00
|
|
|
list = collect_image_info_list(image_opts, filename, fmt, chain,
|
|
|
|
force_share);
|
2017-04-05 11:49:19 +03:00
|
|
|
if (!list) {
|
|
|
|
- return 1;
|
2019-12-13 14:10:51 +03:00
|
|
|
+ // return success if snapshot does not exist
|
2017-04-05 11:49:19 +03:00
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (output_format) {
|