Commit 7635be62 authored by Hiroaki Kobayashi's avatar Hiroaki Kobayashi

Fix incorrect descriptions of host commands

Change-Id: Ib00f8858dc95a314fd0629673124a4dac60948c9
parent ed8b1bf1
......@@ -19,7 +19,7 @@ from blazarclient import command
class ListHosts(command.ListCommand):
"""Print a list of host reservations."""
"""Print a list of hosts."""
resource = 'host'
log = logging.getLogger(__name__ + '.ListHosts')
list_columns = ['id', 'hypervisor_hostname', 'vcpus', 'memory_mb',
......@@ -36,7 +36,7 @@ class ListHosts(command.ListCommand):
class ShowHost(command.ShowCommand):
"""Show host reservation details."""
"""Show host details."""
resource = 'host'
json_indent = 4
# NOTE(sbauza): We can't find by name as there is currently no column
......@@ -46,7 +46,7 @@ class ShowHost(command.ShowCommand):
class CreateHost(command.CreateCommand):
"""Create a host reservation."""
"""Create a host."""
resource = 'host'
json_indent = 4
log = logging.getLogger(__name__ + '.CreateHost')
......@@ -82,7 +82,7 @@ class CreateHost(command.CreateCommand):
class UpdateHost(command.UpdateCommand):
"""Update a host reservation."""
"""Update attributes of a host."""
resource = 'host'
allow_names = False
log = logging.getLogger(__name__ + '.UpdateHost')
......@@ -112,7 +112,7 @@ class UpdateHost(command.UpdateCommand):
class DeleteHost(command.DeleteCommand):
"""Delete a host reservation."""
"""Delete a host."""
resource = 'host'
# NOTE(sbauza): We can't find by name as there is currently no column
# called 'name' but rather 'hypervisor_hostname'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment