Sync charm-helpers
Refreshes charm by including two additions to charmhelpers which will unblock work on Epoxy. Change-Id: Ief9377242ce9ef813dcf74d1d49f5895e96421bb
This commit is contained in:
@@ -620,7 +620,7 @@ def get_relation_ip(interface, cidr_network=None):
|
||||
# Currently IPv6 has priority, eventually we want IPv6 to just be
|
||||
# another network space.
|
||||
assert_charm_supports_ipv6()
|
||||
return get_ipv6_addr()[0]
|
||||
return get_ipv6_addr(dynamic_only=False)[0]
|
||||
elif cidr_network:
|
||||
# If a specific CIDR network is passed get the address from that
|
||||
# network.
|
||||
|
||||
@@ -25,7 +25,10 @@ import socket
|
||||
import time
|
||||
|
||||
from base64 import b64decode
|
||||
from distutils.version import LooseVersion
|
||||
try:
|
||||
from distutils.version import LooseVersion
|
||||
except ImportError:
|
||||
from looseversion import LooseVersion
|
||||
from subprocess import (
|
||||
check_call,
|
||||
check_output,
|
||||
|
||||
Reference in New Issue
Block a user