Skip to content

Commit 9b6dada

Browse files
Ramaraja RamachandranSteve Martinelli
authored andcommitted
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
1 parent b72f2fb commit 9b6dada

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎openstackclient/compute/v2/security_group.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def get_parser(self, prog_name):
290290
parser.add_argument(
291291
"--dst-port",
292292
metavar="<port-range>",
293+
default=(0, 0),
293294
action=parseractions.RangeAction,
294295
help="Destination port, may be a range: 137:139 (default: 0; "
295296
"only required for proto tcp and udp)",

0 commit comments

Comments
 (0)