launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #30721
[Merge] ~cjwatson/txpkgupload:charm-handle-build-label-change into txpkgupload:master
Colin Watson has proposed merging ~cjwatson/txpkgupload:charm-handle-build-label-change into txpkgupload:master.
Commit message:
charm: Handle build_label changes
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/txpkgupload/+git/txpkgupload/+merge/455663
Borrowed from the `launchpad-payload` layer.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/txpkgupload:charm-handle-build-label-change into txpkgupload:master.
diff --git a/charm/txpkgupload/reactive/txpkgupload.py b/charm/txpkgupload/reactive/txpkgupload.py
index f702b1d..bb22539 100644
--- a/charm/txpkgupload/reactive/txpkgupload.py
+++ b/charm/txpkgupload/reactive/txpkgupload.py
@@ -194,6 +194,12 @@ def config_changed():
clear_flag("service.configured")
+@when("config.changed.build_label")
+def build_label_changed():
+ clear_flag("ols.service.installed")
+ clear_flag("ols.configured")
+
+
@when("loadbalancer.available", "service.configured")
@when_not("txpkgupload.loadbalancer.configured")
def configure_loadbalancer():