diff options
| author | Ramaraja Ramachandran <ramaraja.r@hcl.com> | 2015-04-21 16:40:40 +0530 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-04-22 23:45:33 +0000 |
| commit | 9b6dada8e371d9e77db129b15acb03a35115591a (patch) | |
| tree | aa02cfc6bcc85384fb4a234516a04b3c9ca11dee /openstackclient | |
| parent | b72f2fb7eead6287fbdd07c369c0462586f37785 (diff) | |
| download | python-openstackclient-9b6dada8e371d9e77db129b15acb03a35115591a.tar.gz | |
Security group rule create fails
By default the --dst-port value is set to None when no --dst-port
argument is provided. By making the default value (0, 0), this allows
novaclient to proceed without any error.
Change-Id: Ibb58f5df5ed1890a8f499dd2467b12b0e79d547b
Closes-Bug: #1443963
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/compute/v2/security_group.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py index d4643438..d9497301 100644 --- a/openstackclient/compute/v2/security_group.py +++ b/openstackclient/compute/v2/security_group.py @@ -290,6 +290,7 @@ class CreateSecurityGroupRule(show.ShowOne): parser.add_argument( "--dst-port", metavar="<port-range>", + default=(0, 0), action=parseractions.RangeAction, help="Destination port, may be a range: 137:139 (default: 0; " "only required for proto tcp and udp)", |
