diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2018-05-13 21:03:12 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-05-15 05:18:45 +0000 |
commit | f631ceb79e822bb5c3bbbaa2ad3a28a3f32e4251 (patch) | |
tree | 355753025c8e8059f7cc0ca1d61751e1f6a6c845 /cli/src | |
parent | 8e2289b1e76ac777b71897dc709d9651341bd241 (diff) |
cli: Fix for gluster volume info --xml
Problem: gluster volume info --xml is showing same uuid to all
the bricks of a tier volume.
Solution: While iterating over hot/cold bricks of a tier volume, use
correct iterator.
Fixes: bz#1577627
Change-Id: Icf6a9c2a10b9da453abc262a57b7884d6638e3ed
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r-- | cli/src/cli-xml-output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 29ee81b6012..a709ed5a6c7 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -2942,7 +2942,7 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict) memset (key, 0, sizeof (key)); snprintf (key, sizeof (key), - "volume%d.brick%d.uuid", i, j); + "volume%d.brick%d.uuid", i, index); ret = dict_get_str (dict, key, &uuid); if (ret) goto out; @@ -3053,7 +3053,7 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict) memset (key, 0, sizeof (key)); snprintf (key, sizeof (key), - "volume%d.brick%d.uuid", i, j); + "volume%d.brick%d.uuid", i, index); ret = dict_get_str (dict, key, &uuid); if (ret) goto out; |