[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'):
|
||||
host_ip = format_ipv6_addr(addr)
|
||||
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))
|
||||
raise SwiftProxyCharmException(errmsg)
|
||||
log(msg, level=WARNING)
|
||||
host_ip = addr
|
||||
else:
|
||||
host_ip = openstack.get_host_ip(addr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user