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:
Myles Penner
2025-06-03 12:42:03 -07:00
parent a2de90dfc8
commit e03280903e
2 changed files with 5 additions and 2 deletions

View File

@@ -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.

View File

@@ -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,