git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c1a85b
)
try to find a RegJob event with non-empty JDL
author
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 20 Feb 2007 20:54:43 +0000
(20:54 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 20 Feb 2007 20:54:43 +0000
(20:54 +0000)
org.glite.lb.server/src/lb_plugin.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/lb_plugin.c
b/org.glite.lb.server/src/lb_plugin.c
index
54bfee3
..
2aff2e2
100644
(file)
--- 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))