Skip to content
Snippets Groups Projects
Commit a6fb8b87 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

simplification

parent b9650855
No related branches found
No related tags found
No related merge requests found
......@@ -87,18 +87,14 @@ sub update_ssp_authsources {
my $tt2 = Template->new({
INCLUDE_PATH => $templates_dir
});
my %args = (
my $template = 'accountProfiles/valid-accounts.php.tt2';
my $data = {
accounts => IdPAccountManager::Data::TestAccount::Manager->get_testaccounts(),
conf => $conf,
);
my $template_file = 'accountProfiles/valid-accounts.php.tt2';
my $output_file = 'conf/valid-accounts.php';
unless ($tt2->process($template_file, \%args, $output_file)) {
return undef;
}
};
my $output = 'conf/valid-accounts.php';
return $tt2->process($template, $data, $output);
}
1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment