Tidy importMetadata

This commit is contained in:
Maxime Besson 2021-10-20 16:29:38 +02:00
parent 0a17936a39
commit b4e6aeaff3

View File

@ -32,7 +32,8 @@ my $result = GetOptions(
);
pod2usage(1) if $opts{help};
pod2usage( -message => "Missing metadata URL (-m)", -exitval => 2) if !$opts{metadata};
pod2usage( -message => "Missing metadata URL (-m)", -exitval => 2 )
if !$opts{metadata};
#==============================================================================
# Default values
@ -348,10 +349,6 @@ foreach
$lastConf->{samlSPMetaDataExportedAttributes}
->{ $spList->{$entityID} } = $requestedAttributes;
# Update options
# $lastConf->{samlSPMetaDataOptions}->{ $spList->{$entityID} } =
# $spOptions;
# FIX AGA
$lastConf->{samlSPMetaDataOptions}->{ $spList->{$entityID} }
= { %{$spOptions} };
@ -372,10 +369,6 @@ foreach
$lastConf->{samlSPMetaDataExportedAttributes}->{$confKey} =
$requestedAttributes;
# Options
# $lastConf->{samlSPMetaDataOptions}->{$confKey} = $spOptions;
# FIX AGA
$lastConf->{samlSPMetaDataOptions}->{$confKey} =
{ %{$spOptions} };