From 9e8a55daf8f8f271d468de2661e9707c07747d0d Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 29 Oct 2020 11:09:31 +0100 Subject: [PATCH] fix(o365) list modes (#2307) --- cloud/microsoft/office365/onedrive/mode/listsites.pm | 2 +- cloud/microsoft/office365/sharepoint/mode/listsites.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/microsoft/office365/onedrive/mode/listsites.pm b/cloud/microsoft/office365/onedrive/mode/listsites.pm index a6f888177..e611f503b 100644 --- a/cloud/microsoft/office365/onedrive/mode/listsites.pm +++ b/cloud/microsoft/office365/onedrive/mode/listsites.pm @@ -47,7 +47,7 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; - my $results = $options{custom}->office_get_onedrive_usage(); + my $results = $options{custom}->office_get_onedrive_usage(param => "period='D7'"); foreach my $site (@{$results}) { if (defined($self->{option_results}->{filter_url}) && $self->{option_results}->{filter_url} ne '' && diff --git a/cloud/microsoft/office365/sharepoint/mode/listsites.pm b/cloud/microsoft/office365/sharepoint/mode/listsites.pm index 5a8f0a977..e60628cf6 100644 --- a/cloud/microsoft/office365/sharepoint/mode/listsites.pm +++ b/cloud/microsoft/office365/sharepoint/mode/listsites.pm @@ -47,7 +47,7 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; - my $results = $options{custom}->office_get_sharepoint_site_usage(); + my $results = $options{custom}->office_get_sharepoint_site_usage(param => "period='D7'"); foreach my $site (@{$results}) { if (defined($self->{option_results}->{filter_url}) && $self->{option_results}->{filter_url} ne '' &&