Skip to content

Commit e52ddac

Browse files
committed
underscore support
Was blocking the use of underscores. Fixed in this release.
1 parent 5c3df3c commit e52ddac

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

PureStorage.FlashArray.VMware.RDM/PureStorage.FlashArray.VMware.RDM.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Created by: Cody Hosterman
55
Organization: Pure Storage, Inc.
66
Filename: PureStorage.FlashArray.VMware.RDM.psd1
7-
Version: 1.1.0.1
7+
Version: 1.1.0.2
88
Copyright: 2020 Pure Storage, Inc.
99
-------------------------------------------------------------------------
1010
Module Name: PureStorageFlashArrayVMwareRDMPowerShell
@@ -29,7 +29,7 @@
2929
RootModule = 'PureStorage.FlashArray.VMware.RDM.psm1'
3030

3131
# Version number of this module; major.minor[.build[.revision]]
32-
ModuleVersion = '1.1.0.1'
32+
ModuleVersion = '1.1.0.2'
3333

3434
# ID used to uniquely identify this module
3535
GUID = '49e8405f-e78f-4b5d-b121-113d5ad37098'

PureStorage.FlashArray.VMware.RDM/PureStorage.FlashArray.VMware.RDM.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ function New-PfaRDM {
101101
$volName = "$($vm.Name)-rdm$($rand)"
102102
if ($volName -notmatch "^[a-zA-Z0-9\-]+$")
103103
{
104-
$volName = $volName -replace "[^\w\-]", ""
105-
$volName = $volName -replace "[_]", ""
104+
$volName = $volName -replace "[^\w\-_]", ""
106105
$volName = $volName -replace " ", ""
107106
}
108107
}

PureStorage.FlashArray.VMware.VMFS/PureStorage.FlashArray.VMware.VMFS.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Created by: Cody Hosterman
55
Organization: Pure Storage, Inc.
66
Filename: PureStorage.FlashArray.VMware.VMFS.psd1
7-
Version: 1.1.0.3
7+
Version: 1.1.0.4
88
Copyright: 2020 Pure Storage, Inc.
99
-------------------------------------------------------------------------
1010
Module Name: PureStorageFlashArrayVMwareVMFSPowerShell
@@ -29,7 +29,7 @@
2929
RootModule = 'PureStorage.FlashArray.VMware.VMFS.psm1'
3030

3131
# Version number of this module; major.minor[.build[.revision]]
32-
ModuleVersion = '1.1.0.3'
32+
ModuleVersion = '1.1.0.4'
3333

3434
# ID used to uniquely identify this module
3535
GUID = 'd196e4c0-16b8-4189-bc91-1bcee3b7dffe'

PureStorage.FlashArray.VMware.VMFS/PureStorage.FlashArray.VMware.VMFS.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function New-PfaVmfs {
124124
[Parameter(ParameterSetName='GB',Position=2,mandatory=$true)]
125125
[Parameter(ParameterSetName='TB',Position=2,mandatory=$true)]
126126
[ValidateScript({
127-
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
127+
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-_]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
128128
{
129129
$true
130130
}
@@ -595,7 +595,7 @@ function New-PfaVmfsSnapshot {
595595
[VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore[]]$datastore,
596596

597597
[ValidateScript({
598-
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
598+
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-_]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
599599
{
600600
$true
601601
}
@@ -607,7 +607,7 @@ function New-PfaVmfsSnapshot {
607607
[string]$SnapName,
608608

609609
[ValidateScript({
610-
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
610+
if (($_ -match "^[A-Za-z][a-zA-Z0-9\-_]+[a-zA-Z0-9]$") -and ($_.length -lt 64))
611611
{
612612
$true
613613
}

PureStorage.FlashArray.VMware/PureStorage.FlashArray.VMware.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Created by: Cody Hosterman
55
Organization: Pure Storage, Inc.
66
Filename: PureStorage.FlashArray.VMware.psd1
7-
Version: 1.4.1.3
7+
Version: 1.4.1.4
88
Copyright: 2020 Pure Storage, Inc.
99
-------------------------------------------------------------------------
1010
Module Name: PureStorageFlashArrayVMwarePowerShell
@@ -29,7 +29,7 @@
2929
RootModule = ''
3030

3131
# Version number of this module; major.minor[.build[.revision]]
32-
ModuleVersion = '1.4.1.3'
32+
ModuleVersion = '1.4.1.4'
3333

3434
# ID used to uniquely identify this module
3535
GUID = 'a38571e9-918e-4542-bebc-b5294ad4ffbb'
@@ -67,8 +67,8 @@
6767
# Modules that must be imported into the global environment prior to importing this module
6868
RequiredModules = @(
6969
@{"ModuleName"="PureStoragePowerShellSDK";"ModuleVersion"="1.13.1.12"}
70-
@{"ModuleName"="PureStorage.FlashArray.VMware.VMFS";"ModuleVersion"="1.1.0.3"}
71-
@{"ModuleName"="PureStorage.FlashArray.VMware.RDM";"ModuleVersion"="1.1.0.1"}
70+
@{"ModuleName"="PureStorage.FlashArray.VMware.VMFS";"ModuleVersion"="1.1.0.4"}
71+
@{"ModuleName"="PureStorage.FlashArray.VMware.RDM";"ModuleVersion"="1.1.0.2"}
7272
@{"ModuleName"="PureStorage.FlashArray.VMware.Configuration";"ModuleVersion"="1.5.0.1"}
7373
@{"ModuleName"="PureStorage.FlashArray.VMware.vVol";"ModuleVersion"="1.4.0.2"}
7474
@{"ModuleName"="PureStorage.FlashArray.VMware.Pure1";"ModuleVersion"="1.0.0.1"}

0 commit comments

Comments
 (0)