diff options
| author | Dave Walker (Daviey) <DaveWalker@ubuntu.com> | 2011-07-18 00:41:51 +0100 |
|---|---|---|
| committer | Dave Walker (Daviey) <DaveWalker@ubuntu.com> | 2011-07-18 00:41:51 +0100 |
| commit | e68d53df98890f424e361c7c79a5b2cd62723963 (patch) | |
| tree | 7e3e47f9be1d9e3ce80c31e5b3d4cc0b34d2828f | |
| parent | beb2337f002178b7e764f3a6dcbab4637321aa34 (diff) | |
convert group_name to string, incase it's a long
| -rw-r--r-- | nova/api/ec2/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 9de5b58f5..e4b008b85 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -603,7 +603,7 @@ class CloudController(object): return source_project_id def create_security_group(self, context, group_name, group_description): - if not re.match('^[a-zA-Z0-9_\- ]+$', group_name): + if not re.match('^[a-zA-Z0-9_\- ]+$', str(group_name)): # Some validation to ensure that values match API spec. # - Alphanumeric characters, spaces, dashes, and underscores. # TODO(Daviey): extend beyond group_name checking, and probably |
