Merge ~ines-almeida/txpkgupload:charm-restart-service-when-config-changes into txpkgupload:master

Proposed by Ines Almeida
Status: Merged
Approved by: Ines Almeida
Approved revision: 56b417f2881f8b5fe81a7281caf56df10cab250c
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/txpkgupload:charm-restart-service-when-config-changes
Merge into: txpkgupload:master
Diff against target: 14 lines (+3/-0)
1 file modified
charm/txpkgupload/reactive/txpkgupload.py (+3/-0)
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+454601@code.launchpad.net

Commit message

Update charm so that txpkgupload service restarts when config changes

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Ines Almeida (ines-almeida) wrote :

Updated it as suggested

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/charm/txpkgupload/reactive/txpkgupload.py b/charm/txpkgupload/reactive/txpkgupload.py
2index ac91c83..c563685 100644
3--- a/charm/txpkgupload/reactive/txpkgupload.py
4+++ b/charm/txpkgupload/reactive/txpkgupload.py
5@@ -127,6 +127,9 @@ def get_config():
6 {
7 "/lib/systemd/system/txpkgupload.service": ["txpkgupload.service"],
8 "/lib/systemd/system/txpkgupload.socket": ["txpkgupload.socket"],
9+ os.path.join(base.etc_dir(), "txpkgupload.yaml"): [
10+ "txpkgupload.service"
11+ ],
12 }
13 )
14 def configure_txpkgupload(config: Dict):

Subscribers

People subscribed via source and target branches

to all changes: