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>
|
|
|
|
Date: Wed, 9 Dec 2015 14:18:46 +0100
|
2018-08-30 16:00:07 +03:00
|
|
|
Subject: [PATCH] PVE: [Up] qemu-img: return success on info without snapshots
|
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
|
2018-08-30 16:00:07 +03:00
|
|
|
index 1acddf693c..4438e0c2c9 100644
|
2017-04-05 11:49:19 +03:00
|
|
|
--- a/qemu-img.c
|
|
|
|
+++ b/qemu-img.c
|
2018-08-30 16:00:07 +03:00
|
|
|
@@ -2720,7 +2720,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;
|
|
|
|
+ // return success if snapshot does not exists
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (output_format) {
|
|
|
|
--
|
2017-04-05 12:51:17 +03:00
|
|
|
2.11.0
|
2017-04-05 11:49:19 +03:00
|
|
|
|