diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-13 17:07:12 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-13 17:07:12 +0530 |
commit | 57991580217d955984c68cd899d9031736182be0 (patch) | |
tree | 89a2150f003685789d12a77ed90033924d549415 /libs/globals | |
parent | 689f862f24f949361603a808250ae3f7ec9f40f6 (diff) |
Changes made to volume info. This is to support multiple 'volumetypes' and counts
Diffstat (limited to 'libs/globals')
-rwxr-xr-x | libs/globals/testenv.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/globals/testenv.py b/libs/globals/testenv.py index 0720c2c..a73858b 100755 --- a/libs/globals/testenv.py +++ b/libs/globals/testenv.py @@ -33,7 +33,7 @@ class TestEnv(): ['hostname', 'path']) self._volume_tuple = namedtuple('Volume', - ['volumename', 'volumetype', 'count', + ['volumename','replica', 'stripe', 'transporttype', 'bricks']) self._client_tuple = namedtuple('Client', @@ -255,13 +255,13 @@ class TestEnv(): else: return 1 - def addVolume(self, key, volumename, volumetype, count, - transporttype, bricks): + def addVolume(self, key, volumename, replica, + stripe, transporttype, bricks): """ """ brickskeylist = [x.strip() for x in bricks.split(",")] - volume_obj = self._volume_tuple(volumename, volumetype, - count, transporttype, brickskeylist) + volume_obj = self._volume_tuple(volumename, replica, stripe, + transporttype, brickskeylist) self._volumes[key] = volume_obj def getVolume(self, volumekey): |