Factor out common options

This commit is contained in:
Shay Bergmann
2021-07-26 03:43:09 +00:00
parent 3c621ec386
commit 4f95774ca3
3 changed files with 15 additions and 12 deletions

View File

@ -5,6 +5,7 @@ use Exporter;
use File::Path;
use File::Basename;
use Config::General;
use Hydra::Config;
use Hydra::Helper::CatalystUtils;
use Hydra::Model::DB;
use Nix::Store;
@ -48,9 +49,7 @@ sub getHydraConfig {
# This is necessary in order to maintain consistent interpretation
# of the config by the various hydra components.
my %h = new Config::General( -ConfigFile => $conf
, -UseApacheInclude => 1
, -IncludeAgain => 1
)->getall;
, %configGeneralOpts )->getall;
$hydraConfig = \%h;
} else {