Modify help for update host command

The old and new host should be provided in the particular format
host@backend#pool.
The pool is optional for the currenthost in single pool environment but
is recommended practice.

Change-Id: Ide28d6220eeb9d88423c3a0161301b3251035eab
This commit is contained in:
whoami-rajat 2019-11-15 11:41:38 +00:00 committed by Rajat Dhasmana
parent 5ad452fcd4
commit 6c723878de
1 changed files with 4 additions and 2 deletions

View File

@ -465,8 +465,10 @@ class VolumeCommands(object):
rpcapi = volume_rpcapi.VolumeAPI()
rpcapi.delete_volume(ctxt, volume)
@args('--currenthost', required=True, help='Existing volume host name')
@args('--newhost', required=True, help='New volume host name')
@args('--currenthost', required=True, help='Existing volume host name in '
'the format host@backend#pool')
@args('--newhost', required=True, help='New volume host name in the '
'format host@backend#pool')
def update_host(self, currenthost, newhost):
"""Modify the host name associated with a volume.