diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-16 03:35:40 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-16 03:35:40 +0000 |
commit | 1c848cc8be8dc8753ab853d3fa01f7d86d65342b (patch) | |
tree | b4973a25d2091d2ccb799d0c14adc3c55f18e4d1 /trove/common/utils.py | |
parent | 4a16721e071f1ce66cd5d5cd60279d01ece8de2d (diff) | |
parent | 91d443e06b50143a707235363bff9ab97d68a8f4 (diff) | |
download | trove-1c848cc8be8dc8753ab853d3fa01f7d86d65342b.tar.gz |
Merge "Improve list-of-ports validation"
Diffstat (limited to 'trove/common/utils.py')
-rw-r--r-- | trove/common/utils.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/trove/common/utils.py b/trove/common/utils.py index 0cf2f90e..fcb9b557 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -300,16 +300,6 @@ def try_recover(func): return _decorator -def gen_ports(portstr): - from_port, sep, to_port = portstr.partition('-') - if not (to_port and from_port): - if not sep: - to_port = from_port - if int(from_port) > int(to_port): - raise ValueError - return from_port, to_port - - def unpack_singleton(container): """Unpack singleton collections. |