[nova-k8s] Update spice-proxy-url on all relations
When traefik-route relation is updated, the library did not update the right config (when targeting all relations). When a relation is present in the event, is updates the right config. Fix: LP#2090943 Change-Id: I362071cad61838fdbd8f5f0b39936696058a25ba Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This commit is contained in:
parent
5c21c23de8
commit
dd24355383
@ -79,7 +79,7 @@ LIBAPI = 0
|
||||
|
||||
# Increment this PATCH version before using `charmcraft publish-lib` or reset
|
||||
# to 0 if you are raising the major API version
|
||||
LIBPATCH = 1
|
||||
LIBPATCH = 2
|
||||
|
||||
|
||||
class NovaConfigRequestEvent(RelationEvent):
|
||||
@ -132,7 +132,7 @@ class NovaServiceProvides(Object):
|
||||
)
|
||||
for relation in self.framework.model.relations[self.relation_name]:
|
||||
relation.data[self.charm.app][
|
||||
"nova-spiceproxy-url"
|
||||
"spice-proxy-url"
|
||||
] = nova_spiceproxy_url
|
||||
else:
|
||||
logging.debug(
|
||||
|
@ -1,3 +1,3 @@
|
||||
# This file is used to trigger a build.
|
||||
# Change uuid to trigger a new build.
|
||||
b15a0dee-c765-4e23-b950-8eb6f8afc84f
|
||||
f1725b57-90f6-4564-9bf5-02673906ddbc
|
||||
|
Loading…
Reference in New Issue
Block a user