summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorlin-hua-cheng <os.lcheng@gmail.com>2015-03-05 19:35:39 -0800
committerlin-hua-cheng <os.lcheng@gmail.com>2015-03-05 21:42:03 -0800
commit09665052acf8b98718401fb30b93f480707534d3 (patch)
tree9e082939630fea80ae22c94e7696bb265d190718 /openstackclient/compute
parent5b8f18fe4b15069b024e3b84717551fb4c769745 (diff)
downloadpython-openstackclient-09665052acf8b98718401fb30b93f480707534d3.tar.gz
Add hypervisor docs
Change-Id: I444734925316e876afcbfdeffafea9973a837022
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/v2/hypervisor.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/openstackclient/compute/v2/hypervisor.py b/openstackclient/compute/v2/hypervisor.py
index e01258d1..355ffbb3 100644
--- a/openstackclient/compute/v2/hypervisor.py
+++ b/openstackclient/compute/v2/hypervisor.py
@@ -33,8 +33,8 @@ class ListHypervisor(lister.Lister):
parser = super(ListHypervisor, self).get_parser(prog_name)
parser.add_argument(
"--matching",
- metavar="<hostname-str>",
- help="Filter hypervisors using <hostname-str> substring",
+ metavar="<hostname>",
+ help="Filter hypervisors using <hostname> substring",
)
return parser
@@ -58,23 +58,23 @@ class ListHypervisor(lister.Lister):
class ShowHypervisor(show.ShowOne):
- """Show hypervisor details"""
+ """Display hypervisor details"""
log = logging.getLogger(__name__ + ".ShowHypervisor")
def get_parser(self, prog_name):
parser = super(ShowHypervisor, self).get_parser(prog_name)
parser.add_argument(
- "id",
- metavar="<id>",
- help="ID of the hypervisor to display")
+ "hypervisor",
+ metavar="<hypervisor>",
+ help="Hypervisor to display (name or ID)")
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)", parsed_args)
compute_client = self.app.client_manager.compute
hypervisor = utils.find_resource(compute_client.hypervisors,
- parsed_args.id)._info.copy()
+ parsed_args.hypervisor)._info.copy()
hypervisor["service_id"] = hypervisor["service"]["id"]
hypervisor["service_host"] = hypervisor["service"]["host"]