summaryrefslogtreecommitdiff
path: root/trove/common/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-16 03:35:40 +0000
committerGerrit Code Review <review@openstack.org>2017-06-16 03:35:40 +0000
commit1c848cc8be8dc8753ab853d3fa01f7d86d65342b (patch)
treeb4973a25d2091d2ccb799d0c14adc3c55f18e4d1 /trove/common/utils.py
parent4a16721e071f1ce66cd5d5cd60279d01ece8de2d (diff)
parent91d443e06b50143a707235363bff9ab97d68a8f4 (diff)
downloadtrove-1c848cc8be8dc8753ab853d3fa01f7d86d65342b.tar.gz
Merge "Improve list-of-ports validation"
Diffstat (limited to 'trove/common/utils.py')
-rw-r--r--trove/common/utils.py10
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.