]>
Commit | Line | Data |
---|---|---|
23102ed6 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
95259824 WB |
2 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> |
3 | Date: Wed, 9 Dec 2015 14:18:46 +0100 | |
23102ed6 | 4 | Subject: [PATCH] qemu-img: return success on info without snapshots |
95259824 WB |
5 | |
6 | --- | |
7 | qemu-img.c | 3 ++- | |
8 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
9 | ||
10 | diff --git a/qemu-img.c b/qemu-img.c | |
9b05d1d4 | 11 | index bf9de27893..812129ff16 100644 |
95259824 WB |
12 | --- a/qemu-img.c |
13 | +++ b/qemu-img.c | |
6838f038 WB |
14 | @@ -2594,7 +2594,8 @@ static int img_info(int argc, char **argv) |
15 | list = collect_image_info_list(image_opts, filename, fmt, chain, | |
16 | force_share); | |
95259824 WB |
17 | if (!list) { |
18 | - return 1; | |
19 | + // return success if snapshot does not exists | |
20 | + return 0; | |
21 | } | |
22 | ||
23 | switch (output_format) { | |
24 | -- | |
45169293 | 25 | 2.11.0 |
95259824 | 26 |