lib/deploy: Write to journal if nothing to finalize

This can happen if a deployment was staged and later cleaned up. Though
just as a helper when debugging issues, let's explicitly mention that
case.

Closes: #1841
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon authored and Atomic Bot committed 2019-04-24 21:38:24 +00:00
1 parent 5464535205
commit 405d9ef9e0
1 file changed
+4 -1
+4 -1
View File
@@ -2881,7 +2881,10 @@ _ostree_sysroot_finalize_staged (OstreeSysroot *self,
* service when a staged deployment is created.
*/
if (!self->staged_deployment)
return TRUE;
{
ot_journal_print (LOG_INFO, "No deployment staged for finalization");
return TRUE;
}
/* Notice we send this *after* the trivial `return TRUE` above; this msg implies we've
* committed to finalizing the deployment. */