summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-23 20:05:43 +0000
committerGerrit Code Review <review@openstack.org>2015-04-23 20:05:43 +0000
commit00be0dfc0faaf25f585247af828aa522927f9305 (patch)
tree47e5de58c713eb5f13f80fbf4699361cce514fcf /openstackclient/compute/v2
parentf6ac88333c04ce2efacb6f514419a55d5d3830d8 (diff)
parent11c39530f5f97a14d534c8d5b7160a1e74f6cdf8 (diff)
downloadpython-openstackclient-00be0dfc0faaf25f585247af828aa522927f9305.tar.gz
Merge "Fix security group create description bug"
Diffstat (limited to 'openstackclient/compute/v2')
-rw-r--r--openstackclient/compute/v2/security_group.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py
index d9497301..55405810 100644
--- a/openstackclient/compute/v2/security_group.py
+++ b/openstackclient/compute/v2/security_group.py
@@ -81,9 +81,11 @@ class CreateSecurityGroup(show.ShowOne):
compute_client = self.app.client_manager.compute
+ description = parsed_args.description or parsed_args.name
+
data = compute_client.security_groups.create(
parsed_args.name,
- parsed_args.description,
+ description,
)
info = {}