Expose Idunn deployment brake denial causes
This commit is contained in:
parent
11b7669c75
commit
8b972715c4
2 changed files with 1 additions and 7 deletions
|
|
@ -6027,7 +6027,7 @@ fn run_deployment(
|
|||
request_id: request.request_id.clone(),
|
||||
daemon_id: request.daemon_id.clone(),
|
||||
state: "failed".to_string(),
|
||||
detail: format!("deployment command could not run: {error}"),
|
||||
detail: format!("deployment command could not run: {error:#}"),
|
||||
completed_at: requested_at.to_string(),
|
||||
},
|
||||
}
|
||||
|
|
@ -8048,11 +8048,6 @@ mod tests {
|
|||
"--deployment-brake-store /var/lib/gamecult/idunn-authority/deployment-brake.cc"
|
||||
));
|
||||
assert!(unit.contains("ReadOnlyPaths=/var/lib/gamecult/idunn-authority"));
|
||||
assert!(
|
||||
unit.contains(
|
||||
"ReadWritePaths=/var/lib/gamecult/idunn-authority/deployment-brake.cc.lock"
|
||||
)
|
||||
);
|
||||
assert!(
|
||||
!unit
|
||||
.lines()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ ProtectHome=yes
|
|||
ProtectSystem=full
|
||||
ReadWritePaths=/etc/gamecult/idunn /etc/gamecult/ghostlight /etc/systemd/system/epiphany-swarm.service /etc/systemd/system/ghostlight-dungeon.service /var/lib/gamecult/idunn /srv/build /srv/voidbot
|
||||
ReadOnlyPaths=/var/lib/gamecult/idunn-authority
|
||||
ReadWritePaths=/var/lib/gamecult/idunn-authority/deployment-brake.cc.lock
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
Loading…
Reference in a new issue