Merge "secgroup-create description is not optional"
This commit is contained in:
commit
3e5dae84a8
@ -1902,13 +1902,6 @@ class ShellTest(utils.TestCase):
|
||||
{'name': 'test',
|
||||
'description': 'FAKE_SECURITY_GROUP'}})
|
||||
|
||||
def test_security_group_create_without_description(self):
|
||||
self.run_command('secgroup-create test')
|
||||
self.assert_called('POST', '/os-security-groups',
|
||||
{'security_group':
|
||||
{'name': 'test',
|
||||
'description': None}})
|
||||
|
||||
def test_security_group_update(self):
|
||||
self.run_command('secgroup-update test te FAKE_SECURITY_GROUP')
|
||||
self.assert_called('PUT', '/os-security-groups/1',
|
||||
|
@ -2423,7 +2423,7 @@ def do_secgroup_delete_rule(cs, args):
|
||||
|
||||
|
||||
@utils.arg('name', metavar='<name>', help=_('Name of security group.'))
|
||||
@utils.arg('description', metavar='<description>', nargs='?',
|
||||
@utils.arg('description', metavar='<description>',
|
||||
help=_('Description of security group.'))
|
||||
def do_secgroup_create(cs, args):
|
||||
"""Create a security group."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user