Add hint for HDFS protocol while creating shares

Add hint for creating shares with HDFS protocol, Since HDFS
native protocol driver has been merged.

Change-Id: Ic8724b585d1bf0ee1f2b7f8eaa0ed79927b1a292
This commit is contained in:
Sun Jun 2015-02-13 11:11:44 +08:00
parent 0ea9b7a50b
commit faaa07a722
3 changed files with 5 additions and 5 deletions

View File

@ -60,8 +60,8 @@ class ShellTest(utils.TestCase):
def test_help(self):
required = [
'.*?^usage: ',
'.*?^\s+create\s+Creates new NAS storage '
'\(NFS, CIFS or GlusterFS\).',
'.*?^\s+create\s+Creates a new share '
'\(NFS, CIFS, GlusterFS or HDFS\).',
'.*?(?m)^See "manila help COMMAND" for help '
'on a specific command.',
]

View File

@ -136,7 +136,7 @@ class ShareManager(base.ManagerWithFind):
:param snapshot_id: ID of the snapshot
:param name: Name of the NAS
:param description: Short description of a share
:param share_proto: Type of NAS (NFS or CIFS)
:param share_proto: Type of NAS (NFS, CIFS, GlusterFS or HDFS)
:param metadata: Optional metadata to set on volume creation
:rtype: :class:`Share`
"""

View File

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