Merge ~troyanov/maas:agent-create-rundir into maas:master
Proposed by
Anton Troyanov
Status: | Merged |
---|---|
Approved by: | Anton Troyanov |
Approved revision: | 59c39829115c278d81d2685ee6e2f5ce92a55e7e |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~troyanov/maas:agent-create-rundir |
Merge into: | maas:master |
Diff against target: |
26 lines (+13/-1) 1 file modified
src/maasagent/cmd/maas-agent/main.go (+13/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Grabowski | Approve | ||
MAAS Lander | Approve | ||
Jacopo Rota | Pending | ||
Review via email:
|
Commit message
fix(agent): create runDir if it doesn't exist
Description of the change
For SNAP install this folder is created by chrony, because chrony will create a
full path as defined for the PID file in the config [0]
We should not rely on chrony
if "SNAP" in os.environ:
run_dir = get_maas_run_path()
lines.
lines.
lines.
[0]: src/provisionin
To post a comment you must log in.
UNIT TESTS
-b agent-create-rundir lp:~troyanov/maas/+git/maas into -b master lp:~maas-committers/maas
STATUS: SUCCESS d81d2685ee6e2f5 ce92a55e7e
COMMIT: 59c39829115c278