Skip to content

Commit

Permalink
lib/deploy: Write to journal if nothing to finalize
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlebon committed Apr 16, 2019
1 parent e0a504f commit a968b29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2880,7 +2880,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. */
Expand Down

0 comments on commit a968b29

Please sign in to comment.