From: Aleš Křenek Date: Tue, 20 Feb 2007 20:54:43 +0000 (+0000) Subject: try to find a RegJob event with non-empty JDL X-Git-Tag: glite-lb-server-bones_R_2_2_4_1~32 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=bca927f8b8696654bee231fbf9106a8077ec77aa;p=jra1mw.git try to find a RegJob event with non-empty JDL --- diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 54bfee3..2aff2e2 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -280,7 +280,10 @@ static int get_classad_attr(const char* attr, glite_jp_context_t ctx, lb_handle // Get the attribute from JDL int i = 0; while (h->events[i]){ - if (h->events[i]->type == EDG_WLL_EVENT_REGJOB){ + if (h->events[i]->type == EDG_WLL_EVENT_REGJOB + && h->events[i]->regJob.jdl + && h->events[i]->regJob.jdl[0]) + { void *beh; if (! h->classad_plugin->ops.open_str(h->classad_plugin->fpctx, h->events[i]->regJob.jdl, "", "", &beh)){ if (! h->classad_plugin->ops.attr(h->classad_plugin->fpctx, beh, attr, av))