As we might want to ship configuration files with commented out sections,
this will alert the user that a service was listed in the hosts section
but the configuration for that service could not be found.
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2056
9efc2488-bf62-4759-914b-
345cdb29e865
if($apps) {
$apps = [$apps] unless ref $apps;
for my $app (@$apps) {
- push(@hosted_services, $app)
- if $sclient->config_value('apps', $app, 'language') =~ /perl/i;
+ if (!$sclient->config_value('apps', $app)) {
+ msg("Service '$app' is listed for this host, but there is no configuration for it in $opt_config");
+ next;
+ }
+ if ($sclient->config_value('apps', $app, 'language') =~ /perl/i) {
+ push(@hosted_services, $app);
+ }
}
}
return 1;