diff --git a/tools/polldaemon.c b/tools/polldaemon.c index 4527efb97..83928b730 100644 --- a/tools/polldaemon.c +++ b/tools/polldaemon.c @@ -461,13 +461,14 @@ static int _lvmpolld_init_poll_vg(struct cmd_context *cmd, const char *vgname, if (!id.display_name && !lpdp->parms->aborting) continue; + id.vg_name = lv->vg->name; + id.lv_name = lv->name; + if (!*lv->lvid.s) { log_print_unless_silent("Missing LV uuid within: %s/%s", id.vg_name, id.lv_name); continue; } - id.vg_name = lv->vg->name; - id.lv_name = lv->name; id.uuid = lv->lvid.s; r = lvmpolld_poll_init(cmd, &id, lpdp->parms);