[hopem, r=thedac] warn-and-continue if no v6 addr provided on storage-rel
This commit is contained in:
commit
683247aaf0
|
@ -210,9 +210,10 @@ def storage_changed():
|
||||||
if config('prefer-ipv6'):
|
if config('prefer-ipv6'):
|
||||||
host_ip = format_ipv6_addr(addr)
|
host_ip = format_ipv6_addr(addr)
|
||||||
if not host_ip:
|
if not host_ip:
|
||||||
errmsg = ("Did not get IPv6 address from storage relation "
|
msg = ("Did not get IPv6 address from storage relation "
|
||||||
"(got=%s)" % (addr))
|
"(got=%s)" % (addr))
|
||||||
raise SwiftProxyCharmException(errmsg)
|
log(msg, level=WARNING)
|
||||||
|
host_ip = addr
|
||||||
else:
|
else:
|
||||||
host_ip = openstack.get_host_ip(addr)
|
host_ip = openstack.get_host_ip(addr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue