added 'nova-manage config list' which will list out all of the flags and their values. I also alphabetized the list of available categories
This commit is contained in:
@@ -1081,24 +1081,35 @@ class ImageCommands(object):
|
|||||||
self._convert_images(machine_images)
|
self._convert_images(machine_images)
|
||||||
|
|
||||||
|
|
||||||
|
class ConfigCommands(object):
|
||||||
|
"""Class for exposing the flags defined by flag_file(s)."""
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def list(self):
|
||||||
|
print FLAGS.FlagsIntoString()
|
||||||
|
|
||||||
|
|
||||||
CATEGORIES = [
|
CATEGORIES = [
|
||||||
('user', UserCommands),
|
|
||||||
('account', AccountCommands),
|
('account', AccountCommands),
|
||||||
('project', ProjectCommands),
|
('config', ConfigCommands),
|
||||||
('role', RoleCommands),
|
|
||||||
('shell', ShellCommands),
|
|
||||||
('vpn', VpnCommands),
|
|
||||||
('fixed', FixedIpCommands),
|
|
||||||
('floating', FloatingIpCommands),
|
|
||||||
('network', NetworkCommands),
|
|
||||||
('vm', VmCommands),
|
|
||||||
('service', ServiceCommands),
|
|
||||||
('db', DbCommands),
|
('db', DbCommands),
|
||||||
('volume', VolumeCommands),
|
('fixed', FixedIpCommands),
|
||||||
|
('flavor', InstanceTypeCommands),
|
||||||
|
('floating', FloatingIpCommands),
|
||||||
('instance_type', InstanceTypeCommands),
|
('instance_type', InstanceTypeCommands),
|
||||||
('image', ImageCommands),
|
('image', ImageCommands),
|
||||||
('flavor', InstanceTypeCommands),
|
('network', NetworkCommands),
|
||||||
('version', VersionCommands)]
|
('project', ProjectCommands),
|
||||||
|
('role', RoleCommands),
|
||||||
|
('service', ServiceCommands),
|
||||||
|
('shell', ShellCommands),
|
||||||
|
('user', UserCommands),
|
||||||
|
('version', VersionCommands),
|
||||||
|
('vm', VmCommands),
|
||||||
|
('volume', VolumeCommands),
|
||||||
|
('vpn', VpnCommands)]
|
||||||
|
|
||||||
|
|
||||||
def lazy_match(name, key_value_tuples):
|
def lazy_match(name, key_value_tuples):
|
||||||
|
|||||||
Reference in New Issue
Block a user