From 597231a9c01d9a301bad7ee935fa86f1f58365da Mon Sep 17 00:00:00 2001 From: Aleksei Guzev Date: Mon, 8 May 2023 21:00:44 +0300 Subject: [PATCH] Fix module metadata - Exchange module cannot be published GH-83 - WindowsAdministration forwards confirmations from CimCmdlets GH-84 - DatabaseTools encoding --- ...toragePowerShellToolkit.DatabaseTools.psm1 | 36 +++++++++--------- ...PureStoragePowerShellToolkit.Exchange.psd1 | Bin 13018 -> 13070 bytes ...PureStoragePowerShellToolkit.Exchange.psm1 | 3 ++ ...werShellToolkit.WindowsAdministration.psm1 | 3 ++ 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/PureStoragePowerShellToolkit.DatabaseTools/PureStoragePowerShellToolkit.DatabaseTools.psm1 b/PureStoragePowerShellToolkit.DatabaseTools/PureStoragePowerShellToolkit.DatabaseTools.psm1 index 1fce738..944fa0a 100644 --- a/PureStoragePowerShellToolkit.DatabaseTools/PureStoragePowerShellToolkit.DatabaseTools.psm1 +++ b/PureStoragePowerShellToolkit.DatabaseTools/PureStoragePowerShellToolkit.DatabaseTools.psm1 @@ -23,23 +23,23 @@ #Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' } #Requires -Modules @{ ModuleName='dbatools'; ModuleVersion='1.0.173' } -#region Helper functions - -function Convert-UnitOfSize { - [CmdletBinding()] - param ( - [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] - [AllowNull()] - $Value, - $To = 1GB, - $From = 1, - $Decimals = 2 - ) - - process { - return [math]::Round($Value * $From / $To, $Decimals) - } -} +#region Helper functions + +function Convert-UnitOfSize { + [CmdletBinding()] + param ( + [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] + [AllowNull()] + $Value, + $To = 1GB, + $From = 1, + $Decimals = 2 + ) + + process { + return [math]::Round($Value * $From / $To, $Decimals) + } +} function Write-Color { [CmdletBinding()] @@ -112,7 +112,7 @@ function Write-Color { } } -#endregion Helper functions +#endregion Helper functions function Invoke-Pfa2DynamicDataMasking { <# diff --git a/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psd1 b/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psd1 index 990721b08d7a42551360fd9ebed0a67adf1455e4..66085a1ad77019117098c377e719cdcf340f6b6e 100644 GIT binary patch delta 133 zcmcbW+LyK=NpSKz0g1_Vf^3r?35iH5FoZDV17QwBHbW*u34;Pd8jx4SpfEX+U(!^8 z!3`*r$WY9X0VIonFp;4Ws3wsik0Av}dje^Yu1ugv30Pk-gWlwa!lsi8L^(De5R74) VEFmc}Sw})*a*PV!=2;RBQUK?KAr}Au delta 91 zcmeB6yOp{jNsw8YL1A*Dp#0=05tGdZLMd#MXGmx$@-lESC_te)gEK=WLoSfaWk_Mj lVMt{tVJM#5s30sH3}odq6fq<+qyt6O8GyPr@0akG0sz|E6XXB@ diff --git a/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psm1 b/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psm1 index a8e3f89..1393465 100644 --- a/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psm1 +++ b/PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psm1 @@ -23,6 +23,9 @@ $ErrorActionPreference = 'Stop' +Import-Module 'CimCmdlets' -Global +Import-Module 'Storage' -Global + # Core functions $script:exch_snapin = 'Microsoft.Exchange.Management.PowerShell.SnapIn' $script:PureProvider = [guid]'781C006A-5829-4A25-81E3-D5E43BD005AB' diff --git a/PureStoragePowerShellToolkit.WindowsAdministration/PureStoragePowerShellToolkit.WindowsAdministration.psm1 b/PureStoragePowerShellToolkit.WindowsAdministration/PureStoragePowerShellToolkit.WindowsAdministration.psm1 index efccaa3..3df5237 100644 --- a/PureStoragePowerShellToolkit.WindowsAdministration/PureStoragePowerShellToolkit.WindowsAdministration.psm1 +++ b/PureStoragePowerShellToolkit.WindowsAdministration/PureStoragePowerShellToolkit.WindowsAdministration.psm1 @@ -22,6 +22,9 @@ #Requires -Version 5 #Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' } +Import-Module 'CimCmdlets' -Global +Import-Module 'Storage' -Global + #region Helper functions function Convert-UnitOfSize {