From 99815a521fd69ac8a75da2b63386f8dd6fdf445e Mon Sep 17 00:00:00 2001 From: John Griffith Date: Tue, 8 Mar 2016 11:43:14 -0700 Subject: [PATCH] Add docstrings for chessecake methods We missed docstrings on freeze, thaw and failover replication v2.1 methods. This adds them. Change-Id: If68a674c66b4f18e80432d1cef269b02813fcc37 --- cinderclient/v2/shell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index a854ec6eb..d57503438 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -2622,12 +2622,14 @@ def do_snapshot_unmanage(cs, args): @utils.arg('host', metavar='', help='Host name.') @utils.service_type('volumev2') def do_freeze_host(cs, args): + """Freeze and disable the specified cinder-volume host.""" cs.services.freeze_host(args.host) @utils.arg('host', metavar='', help='Host name.') @utils.service_type('volumev2') def do_thaw_host(cs, args): + """Thaw and enable the specified cinder-volume host.""" cs.services.thaw_host(args.host) @@ -2637,4 +2639,5 @@ def do_thaw_host(cs, args): help='ID of backend to failover to (Default=None)') @utils.service_type('volumev2') def do_failover_host(cs, args): + """Failover a replicating cinder-volume host.""" cs.services.failover_host(args.host, args.backend_id)