diff options
author | Arthy Loganathan <aloganat@redhat.com> | 2017-05-24 11:36:09 +0530 |
---|---|---|
committer | ShwethaHPanduranga <shwetha-h-p@review.gluster.org> | 2017-06-12 10:31:30 +0000 |
commit | cc1a36474c26c98ed93da003a274d58204c79e00 (patch) | |
tree | a38ae886678a8c98964654094248e295e87232b3 /glustolibs-gluster/glustolibs/gluster/mount_ops.py | |
parent | 67d32f7a0346e2f095a1468d14a054635ef8864b (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/mount_ops.py')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/mount_ops.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/mount_ops.py b/glustolibs-gluster/glustolibs/gluster/mount_ops.py index 1a697866e..adb3cae9f 100644 --- a/glustolibs-gluster/glustolibs/gluster/mount_ops.py +++ b/glustolibs-gluster/glustolibs/gluster/mount_ops.py @@ -396,7 +396,7 @@ def create_mount_objs(mounts): Example: mounts: [ - {'mount_protocol': 'glusterfs', + {'protocol': 'glusterfs', 'mountpoint': '/mnt/g1', 'server': 'abc.lab.eng.xyz.com', 'client': {'host': 'def.lab.eng.xyz.com'}, @@ -404,14 +404,14 @@ def create_mount_objs(mounts): 'options': '', 'num_of_mounts': 2}, - {'mount_protocol': 'nfs', + {'protocol': 'nfs', 'mountpoint': '/mnt/n1', 'server': 'abc.lab.eng.xyz.com', 'client': {'host': 'def.lab.eng.xyz.com'}, 'volname': 'testvoi', 'options': ''} - {'mount_protocol': 'smb', + {'protocol': 'smb', 'mountpoint': '', 'server': 'abc.lab.eng.xyz.com', 'client': { @@ -435,14 +435,14 @@ def create_mount_objs(mounts): temp_mount = copy.deepcopy(mount) if (mount['protocol'] == "glusterfs" or mount['protocol'] == "nfs" or mount['protocol'] == "cifs"): - if 'mountpoint' in mount['mountpoint'] and mount['mountpoint']: + if 'mountpoint' in mount and mount['mountpoint']: temp_mount['mountpoint'] = mount['mountpoint'] else: temp_mount['mountpoint'] = ("/mnt/%s_%s" % (mount['volname'], mount['protocol'])) elif mount['protocol'] == "smb": - if 'mountpoint' in mount['mountpoint'] and mount['mountpoint']: + if 'mountpoint' in mount and mount['mountpoint']: temp_mount['mountpoint'] = mount['mountpoint'] else: temp_mount['mountpoint'] = "*" |