projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77e763e
)
fail early of no sau serverid
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 14 Mar 2011 21:28:27 +0000
(22:28 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 14 Mar 2011 21:28:27 +0000
(22:28 +0100)
lib/APKPM/VOICE.pm
patch
|
blob
|
history
diff --git
a/lib/APKPM/VOICE.pm
b/lib/APKPM/VOICE.pm
index
69aaad3
..
65d2946
100644
(file)
--- a/
lib/APKPM/VOICE.pm
+++ b/
lib/APKPM/VOICE.pm
@@
-30,6
+30,8
@@
sub info : Job : MinProcesses(1) : MaxProcesses(5) : Encode(e_json) {
my %sru = $voice->searchSRU($broj);
warn "# SRU ",dump( %sru );
+ return { broj => $workload, error => "no serverid" } unless defined $sru{serverid};
+
$voice->connectSAU( $sau->[ $sru{serverid} ] );
my %sau = $voice->searchSAU($sru{alias});