From 372d04016c6390a0e301d4f044d1cab34fe31eec Mon Sep 17 00:00:00 2001 From: junboli <junbo85.li@gmail.com> Date: Tue, 10 Oct 2017 17:09:20 +0800 Subject: [PATCH] Add MAPRFS protocol in create help TrivialFix Change-Id: I7be9941738f56765faacfda422cdbc72fb3929a3 --- manilaclient/tests/unit/v2/test_shares.py | 2 +- manilaclient/v2/shares.py | 4 ++-- manilaclient/v2/shell.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manilaclient/tests/unit/v2/test_shares.py b/manilaclient/tests/unit/v2/test_shares.py index 8ab8c92b1..ef377f590 100644 --- a/manilaclient/tests/unit/v2/test_shares.py +++ b/manilaclient/tests/unit/v2/test_shares.py @@ -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, diff --git a/manilaclient/v2/shares.py b/manilaclient/v2/shares.py index 0cd38692b..5960e9813 100644 --- a/manilaclient/v2/shares.py +++ b/manilaclient/v2/shares.py @@ -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 diff --git a/manilaclient/v2/shell.py b/manilaclient/v2/shell.py index 04996a610..5b21444ab 100644 --- a/manilaclient/v2/shell.py +++ b/manilaclient/v2/shell.py @@ -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: