diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-08-03 16:42:23 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-08-03 16:42:23 -0700 |
| commit | b94eb7bf4fd71a23cacc20def2b5a47dad053b56 (patch) | |
| tree | b5b94f2991a96ad1436a42729b3e2de3957d4a95 /nova/api | |
| parent | 634fe881223a7ea8e04b3054b39724207153be5b (diff) | |
| download | nova-b94eb7bf4fd71a23cacc20def2b5a47dad053b56.tar.gz nova-b94eb7bf4fd71a23cacc20def2b5a47dad053b56.tar.xz nova-b94eb7bf4fd71a23cacc20def2b5a47dad053b56.zip | |
Remove whitespaces from name and description before creating security group
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/contrib/security_groups.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/contrib/security_groups.py b/nova/api/openstack/contrib/security_groups.py index 39f1959e0..7da046b8f 100644 --- a/nova/api/openstack/contrib/security_groups.py +++ b/nova/api/openstack/contrib/security_groups.py @@ -140,6 +140,8 @@ class SecurityGroupController(object): self._validate_security_group_name(group_name) self._validate_security_group_description(group_description) + group_name = group_name.strip() + group_description = group_description.strip() LOG.audit(_("Create Security Group %s"), group_name, context=context) self.compute_api.ensure_default_security_group(context) |
