Clarify "nova scrub" help text

I came across the "nova scrub" command today.  Someone was reporting
that it did not delete everything they expected it to.  It only
deletes networks and security groups associated with the project, so
update the help text to make that more clear.

Change-Id: Id769018787cc73d52ab5fc93196e69bc0ec785ea
This commit is contained in:
Russell Bryant 2014-10-08 15:21:28 -04:00
parent d6889adb45
commit e82b46bb93
2 changed files with 2 additions and 2 deletions
novaclient

@ -771,7 +771,7 @@ def do_flavor_access_remove(cs, args):
@utils.arg('project_id', metavar='<project_id>',
help=_('The ID of the project.'))
def do_scrub(cs, args):
"""Delete data associated with the project."""
"""Delete networks and security groups associated with a project."""
networks_list = cs.networks.list()
networks_list = [network for network in networks_list
if getattr(network, 'project_id', '') == args.project_id]

@ -613,7 +613,7 @@ def do_flavor_access_remove(cs, args):
@utils.arg('project_id', metavar='<project_id>',
help='The ID of the project.')
def do_scrub(cs, args):
"""Delete data associated with the project."""
"""Delete networks and security groups associated with a project."""
networks_list = cs.networks.list()
networks_list = [network for network in networks_list
if getattr(network, 'project_id', '') == args.project_id]