Add MAPRFS protocol in create help

TrivialFix

Change-Id: I7be9941738f56765faacfda422cdbc72fb3929a3
This commit is contained in:
junboli 2017-10-10 17:09:20 +08:00
parent 86f1a55346
commit 372d04016c
3 changed files with 5 additions and 5 deletions
manilaclient

@ -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,

@ -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

@ -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: