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.

Closes: #1841
Approved by: cgwalters
  • Loading branch information
jlebon authored and rh-atomic-bot committed Apr 24, 2019
1 parent 5464535 commit 405d9ef
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 @@ -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. */
Expand Down

0 comments on commit 405d9ef

Please sign in to comment.