summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
diff options
context:
space:
mode:
authorArthy Loganathan <aloganat@redhat.com>2017-05-24 11:36:09 +0530
committerShwethaHPanduranga <shwetha-h-p@review.gluster.org>2017-06-12 10:31:30 +0000
commitcc1a36474c26c98ed93da003a274d58204c79e00 (patch)
treea38ae886678a8c98964654094248e295e87232b3 /glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
parent67d32f7a0346e2f095a1468d14a054635ef8864b (diff)
Minor changes in gluster base class wrt nfs-ganesha
Change-Id: Iaceb22cd5b2fe920c9cdc6d110d26939e26e5ffe Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/gluster_base_class.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/gluster_base_class.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
index 4ad6cc7..777f9ea 100644
--- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
+++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
@@ -126,12 +126,19 @@ class GlusterBaseClass(unittest.TestCase):
cls.smb_users_info['root']['password'] = 'foobar'
cls.smb_users_info['root']['acl'] = 'rwx'
- # NFS-Ganesha Cluster Info
+ # NFS-Ganesha Cluster info
try:
cls.enable_nfs_ganesha = bool(g.config['gluster']['cluster_config']
['nfs_ganesha']['enable'])
+ cls.num_of_nfs_ganesha_nodes = (g.config['gluster']
+ ['cluster_config']['nfs_ganesha']
+ ['num_of_nfs_ganesha_nodes'])
+ cls.vips = (g.config['gluster']['cluster_config']['nfs_ganesha']
+ ['vips'])
except KeyError:
cls.enable_nfs_ganesha = False
+ cls.num_of_nfs_ganesha_nodes = None
+ cls.vips = []
# Defining default volume_types configuration.
default_volume_type_config = {