Merge "Add MAPRFS protocol in create help"

This commit is contained in:
Zuul 2017-10-19 06:32:18 +00:00 committed by Gerrit Code Review
commit d80a7cef71
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ class SharesTest(utils.TestCase):
# Testcases for class ShareManager
@ddt.data('nfs', 'cifs', 'cephfs', 'glusterfs', 'hdfs')
@ddt.data('nfs', 'cifs', 'cephfs', 'glusterfs', 'hdfs', 'maprfs')
def test_create_share_with_protocol(self, protocol):
expected = {
'size': 1,

View File

@ -127,8 +127,8 @@ class ShareManager(base.ManagerWithFind):
share_group_id=None):
"""Create a share.
:param share_proto: text - share protocol for new share
available values are NFS, CIFS, CephFS, GlusterFS and HDFS.
:param share_proto: text - share protocol for new share available
values are NFS, CIFS, CephFS, GlusterFS, HDFS and MAPRFS.
:param size: int - size in GiB
:param snapshot_id: text - ID of the snapshot
:param name: text - name of new share

View File

@ -678,7 +678,7 @@ def do_rate_limits(cs, args):
'share_protocol',
metavar='<share_protocol>',
type=str,
help='Share protocol (NFS, CIFS, CephFS, GlusterFS or HDFS).')
help='Share protocol (NFS, CIFS, CephFS, GlusterFS, HDFS or MAPRFS).')
@cliutils.arg(
'size',
metavar='<size>',
@ -744,7 +744,7 @@ def do_rate_limits(cs, args):
default=None)
@cliutils.service_type('sharev2')
def do_create(cs, args):
"""Creates a new share (NFS, CIFS, CephFS, GlusterFS or HDFS)."""
"""Creates a new share (NFS, CIFS, CephFS, GlusterFS, HDFS or MAPRFS)."""
share_metadata = None
if args.metadata is not None: