From 43efe5f014c399aa9a3de6c8c0edc5120b99b8cf Mon Sep 17 00:00:00 2001 From: itoussies <65223458+itoussies@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:07:53 +0200 Subject: [PATCH] fix(plugin): Azure Storage Sync (#2869) --- cloud/azure/storage/storagesync/mode/filessync.pm | 2 +- cloud/azure/storage/storagesync/mode/recalls.pm | 2 +- cloud/azure/storage/storagesync/mode/serverstatus.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/azure/storage/storagesync/mode/filessync.pm b/cloud/azure/storage/storagesync/mode/filessync.pm index 08186231b..18dbdf72e 100644 --- a/cloud/azure/storage/storagesync/mode/filessync.pm +++ b/cloud/azure/storage/storagesync/mode/filessync.pm @@ -82,7 +82,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; } diff --git a/cloud/azure/storage/storagesync/mode/recalls.pm b/cloud/azure/storage/storagesync/mode/recalls.pm index 8ebab8932..133464e19 100644 --- a/cloud/azure/storage/storagesync/mode/recalls.pm +++ b/cloud/azure/storage/storagesync/mode/recalls.pm @@ -98,7 +98,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; } diff --git a/cloud/azure/storage/storagesync/mode/serverstatus.pm b/cloud/azure/storage/storagesync/mode/serverstatus.pm index 5c4a01eb9..04cbe7c15 100644 --- a/cloud/azure/storage/storagesync/mode/serverstatus.pm +++ b/cloud/azure/storage/storagesync/mode/serverstatus.pm @@ -66,7 +66,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; }