This commit is contained in:
garnier-quentin 2021-12-21 11:01:29 +01:00
parent 74a7bfef88
commit c7f220e86f
1 changed files with 10 additions and 2 deletions

View File

@ -48,8 +48,16 @@ sub run {
my $data = {};
if (defined($entries->licenses)) {
foreach my $license (@{$entries->licenses}) {
use Data::Dumper;
print Data::Dumper::Dumper($license);
$data->{ $license->{name} } = {
total => $license->{total},
used => $license->{used},
edition => $license->{editionKey}
};
foreach my $prop (@{$license->{properties}}) {
if ($prop->{key} eq 'expirationMinutes') {
$data->{ $license->{name} }->{expiration_minutes} = $prop->{value};
}
}
}
}