Browse Source

Merge "Remove all usage of six library"

changes/78/749478/1
Zuul 11 months ago
committed by Gerrit Code Review
parent
commit
ef54f10b79
  1. 6
      devstack/lib/kuryr_kubernetes

6
devstack/lib/kuryr_kubernetes

@ -173,10 +173,9 @@ function _allocation_range {
import sys
from netaddr import IPNetwork
import six
n = IPNetwork(six.text_type(sys.argv[1]))
n = IPNetwork(str(sys.argv[1]))
gateway_position = sys.argv[2]
if gateway_position == 'beginning':
@ -1064,10 +1063,9 @@ function split_subnet {
import sys
from netaddr import IPNetwork
import six
n = IPNetwork(six.text_type(sys.argv[1]))
n = IPNetwork(str(sys.argv[1]))
first, last = n.subnet(n.prefixlen+1)
print("%s\\t%s" % (first, last))

Loading…
Cancel
Save