154 |
|
|
155 |
push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, $_ foreach @attrs; |
push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, $_ foreach @attrs; |
156 |
|
|
157 |
my $path = $config->{yaml_dir} . "$uid.yaml"; |
my @additional_yamls = ( $uid ); |
158 |
if ( -e $path ) { |
foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) { |
159 |
my $data = LoadFile($path); |
foreach my $v ( @{ $attr->{vals} } ) { |
160 |
warn "# yaml = ",dump($data); |
push @additional_yamls, $attr->{type} . '/' . $v; |
161 |
|
} |
162 |
|
} |
163 |
|
|
164 |
|
#warn "# additional_yamls ",dump( @additional_yamls ); |
165 |
|
|
166 |
|
foreach my $path ( @additional_yamls ) { |
167 |
|
my $full_path = $config->{yaml_dir} . '/' . $path . '.yaml'; |
168 |
|
next unless -e $full_path; |
169 |
|
|
170 |
|
my $data = LoadFile( $full_path ); |
171 |
|
warn "# $full_path yaml = ",dump($data); |
172 |
|
|
173 |
foreach my $type ( keys %$data ) { |
foreach my $type ( keys %$data ) { |
174 |
|
|