From c06ff68fcf8c9f38582c0a589b2bfc4e50954968 Mon Sep 17 00:00:00 2001 From: Aashish Ramdas Date: Tue, 24 Sep 2019 10:30:29 -0700 Subject: [PATCH] Update Azure-Blob-FiletypeAnalysis.ps1 Bugfix for array edgecase --- PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1 b/PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1 index de51d22..13d9d52 100644 --- a/PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1 +++ b/PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1 @@ -331,7 +331,8 @@ function Run-MainScript { ## Get a list of STORAGE ACCOUNTs foreach( $sub in $SUBSCRIPTION_LIST ) { - $STORAGEACCOUNTLIST += (EnumerateStorageAccounts -subscription $sub) + $STORAGEACCOUNTLIST += (EnumerateStorageAccounts -subscription $sub) + if( $STORAGEACCOUNTLIST -isnot [array] ) { $STORAGEACCOUNTLIST = @($STORAGEACCOUNTLIST) } } ## Get a list of BLOB STORAGE CONTAINERS