summaryrefslogtreecommitdiffstats
path: root/tests/functional/afr
diff options
context:
space:
mode:
authorsayaleeraut <saraut@redhat.com>2020-08-19 13:12:33 +0530
committerArthy Loganathan <aloganat@redhat.com>2020-08-19 10:54:53 +0000
commit5140b0c1f65a854c3e6cc5e1d1d852569a0abaee (patch)
tree7b4b65de8339ab5f4c5ba97fb52f01f6cff55d2c /tests/functional/afr
parent4fbea671b31c5e4495aa9f4da207576105a52bb7 (diff)
[LibFix] Fix code to avoid failure
Description: Earlier, on running a test script which calls get_volume_type(), the test script displayed below failure message in glusto logs: "INFO (get_volume_type) Failed to find brick-path 10.70.47.44:/bricks/brick2/testvol_distributed_brick0// for volume testvol_distributed" - even though the brick-path was present in the volume. Checked by directly calling the function as well: >>> from glusto.core import Glusto as g >>> from glustolibs.gluster.volume_libs import get_volume_type >>> ret = get_volume_type('10.70.47.44:/bricks/brick2/vol1-b1/') >>> print ret Distribute >>> ret = get_volume_type('10.70.47.44:/bricks/brick2/vol1-b1//') >>> print ret None Observed that the issue occurs if an extra "/" is present at the end of the brickdir_path(str) parameter passed to the function. Hence have added a check for the same. Change-Id: I01fe2d05b7f206d7767c83e57e714053358dc42c Signed-off-by: sayaleeraut <saraut@redhat.com>
Diffstat (limited to 'tests/functional/afr')
0 files changed, 0 insertions, 0 deletions