Skip to content

Commit 597231a

Browse files
committed
Fix module metadata
- Exchange module cannot be published GH-83 - WindowsAdministration forwards confirmations from CimCmdlets GH-84 - DatabaseTools encoding
1 parent 0a61bfb commit 597231a

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

PureStoragePowerShellToolkit.DatabaseTools/PureStoragePowerShellToolkit.DatabaseTools.psm1

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@
2323
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' }
2424
#Requires -Modules @{ ModuleName='dbatools'; ModuleVersion='1.0.173' }
2525

26-
#region Helper functions
27-
28-
function Convert-UnitOfSize {
29-
[CmdletBinding()]
30-
param (
31-
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
32-
[AllowNull()]
33-
$Value,
34-
$To = 1GB,
35-
$From = 1,
36-
$Decimals = 2
37-
)
38-
39-
process {
40-
return [math]::Round($Value * $From / $To, $Decimals)
41-
}
42-
}
26+
#region Helper functions
27+
28+
function Convert-UnitOfSize {
29+
[CmdletBinding()]
30+
param (
31+
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
32+
[AllowNull()]
33+
$Value,
34+
$To = 1GB,
35+
$From = 1,
36+
$Decimals = 2
37+
)
38+
39+
process {
40+
return [math]::Round($Value * $From / $To, $Decimals)
41+
}
42+
}
4343

4444
function Write-Color {
4545
[CmdletBinding()]
@@ -112,7 +112,7 @@ function Write-Color {
112112
}
113113
}
114114

115-
#endregion Helper functions
115+
#endregion Helper functions
116116

117117
function Invoke-Pfa2DynamicDataMasking {
118118
<#
Binary file not shown.

PureStoragePowerShellToolkit.Exchange/PureStoragePowerShellToolkit.Exchange.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
$ErrorActionPreference = 'Stop'
2525

26+
Import-Module 'CimCmdlets' -Global
27+
Import-Module 'Storage' -Global
28+
2629
# Core functions
2730
$script:exch_snapin = 'Microsoft.Exchange.Management.PowerShell.SnapIn'
2831
$script:PureProvider = [guid]'781C006A-5829-4A25-81E3-D5E43BD005AB'

PureStoragePowerShellToolkit.WindowsAdministration/PureStoragePowerShellToolkit.WindowsAdministration.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#Requires -Version 5
2323
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' }
2424

25+
Import-Module 'CimCmdlets' -Global
26+
Import-Module 'Storage' -Global
27+
2528
#region Helper functions
2629

2730
function Convert-UnitOfSize {

0 commit comments

Comments
 (0)