From 1a6a60ad804754499b1585fd0f123eb2f25a1c61 Mon Sep 17 00:00:00 2001 From: Chris Lynch Date: Tue, 31 Mar 2015 10:51:15 -0700 Subject: [PATCH] Release 1.20.0110.0 * Fixed New-HPOVProfile where condition check for bootable connections and presence of -ManageBoot parameter would always fail causing terminating error. Updating .gitattributes for PowerShell specific files. --- .gitattributes | 20 ++++++++++++++++ HPOneView.120.psd1 | Bin 8786 -> 8784 bytes HPOneView.120.psm1 | 8 ++++--- ...7-2F4D-4771-9068-8C65EBEFEFC9_HelpInfo.xml | 2 +- ...2F4D-4771-9068-8C65EBEFEFC9_ModuleInfo.xml | 2 +- en-US/about_HPOneView.120.help.txt | 22 +++++++++++++----- 6 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9876da9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,20 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain +*.PMS1 diff=astextplain +*.PSD1 diff=astextplain +*.PS1 diff=astextplain diff --git a/HPOneView.120.psd1 b/HPOneView.120.psd1 index bb20c7a0d36e20537f7ecfef16ae5f4ea5d22caa..c5b37b17dd348530fc870397e6bc53c27fef5686 100644 GIT binary patch delta 20 ccmccQa=~Ro4L7qPgTdtYLdu($aIX^s09A4aqW}N^ delta 20 bcmccMa>->w4L7?1gC&C=gW={z?(<>*N=XJ) diff --git a/HPOneView.120.psm1 b/HPOneView.120.psm1 index 814c447..1af5d58 100644 --- a/HPOneView.120.psm1 +++ b/HPOneView.120.psm1 @@ -91,11 +91,14 @@ THE SOFTWARE. | - Renamed the following CMDLETs and created alias: Get-HPOVSppFile --> Get-HPOVBaseline Add-HPOVSppFile --> Add-HPOVBaseline +------------------------------------------ +1.20.0110.0 + | - Fixed New-HPOVProfile where condition check for bootable connections and presence of -ManageBoot parameter would always fail causing terminating error. #> #Set HPOneView POSH Library Version #Increment 3rd string by taking todays day (e.g. 23) and hour in 24hr format (e.g. 14), and adding to the prior value. -$script:scriptVersion = "1.20.0109.10" +$script:scriptVersion = "1.20.0110.0" #Check to see if another module is loaded in the console, but allow Import-Module to process normally if user specifies the same module name if ($(get-module -name HPOneView*) -and (-not $(get-module -name HPOneView* | % { $_.name -eq "HPOneView.120"}))) { @@ -17140,7 +17143,6 @@ function New-HPOVProfile { [parameter(Mandatory = $false,ParameterSetName = "Default")] [parameter(Mandatory = $false,ParameterSetName = "SANStorageAttach")] [Alias('boot')] - [ValidateNotNullOrEmpty()] [switch]$manageBoot, [parameter(Mandatory = $false,ParameterSetName = "Default")] @@ -17597,7 +17599,7 @@ function New-HPOVProfile { } - if ($serverProfile.boot.manageBoot -and $BootableConnections.count -gt 0) { + if ((-not($manageBoot.IsPresent)) -and $BootableConnections.count -gt 0) { $errorRecord = New-ErrorRecord HPOneView.ServerProfileResourceException BootableConnectionsFound InvalidArgument 'manageBoot' -Message "Bootable Connections $($BootableConnections -join ",") were found, however the -manageBoot switch parameter was not provided. Please correct your command syntax and try again." #-verbose $pscmdlet.ThrowTerminatingError($errorRecord) diff --git a/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_HelpInfo.xml b/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_HelpInfo.xml index 76a9641..f2e1259 100644 --- a/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_HelpInfo.xml +++ b/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_HelpInfo.xml @@ -4,7 +4,7 @@ en-US - 1.20.109.6 + 1.20.110.6 \ No newline at end of file diff --git a/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_ModuleInfo.xml b/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_ModuleInfo.xml index 268a908..7619d46 100644 --- a/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_ModuleInfo.xml +++ b/HPOneView.120_9A442AA7-2F4D-4771-9068-8C65EBEFEFC9_ModuleInfo.xml @@ -1,5 +1,5 @@  http://www.hp.com/go/powershell/updatehelp/ - 1.20.109.2 + 1.20.110.2 \ No newline at end of file diff --git a/en-US/about_HPOneView.120.help.txt b/en-US/about_HPOneView.120.help.txt index e59c1ef..4264297 100644 --- a/en-US/about_HPOneView.120.help.txt +++ b/en-US/about_HPOneView.120.help.txt @@ -30,18 +30,28 @@ SHORT DESCRIPTION WHAT'S NEW + Release 1.20.0110.0 + -- Fixed New-HPOVProfile where condition check for bootable connections and presence of -ManageBoot parameter + would always fail causing terminating error. + Release 1.20.0109.0 -- Fixed New-HPOVProfileConnection where Fibre Channel boot targets were not added to the object correctly. - -- Fixed Copy-HPOVProfile where the connections property of the source profile were being removed in the new Server Profile object. + -- Fixed Copy-HPOVProfile where the connections property of the source profile were being removed in the new + Server Profile object. -- Fixed Copy-HPOVProfile where the warning message about SAN volumes would not be copied would aways display. - -- Updated New-HPOVProfile to verify any connections configured as bootable and caller did not supply the -manageBoot switch parameter to generate a terminating error. - -- Updated New-HPOVProfile to generate error if no available storage systems were found when attempting to attach Storage Volume to a Server Profile. + -- Updated New-HPOVProfile to verify any connections configured as bootable and caller did not supply the + -manageBoot switch parameter to generate a terminating error. + -- Updated New-HPOVProfile to generate error if no available storage systems were found when attempting to + attach Storage Volume to a Server Profile. -- Updated Wait-HPOVTaskComplete to wait 2 seconds before getting task status. -- Updated RestClient to increate the default timeout from 10 to 20 seconds. - -- Updated New-HPOVStorageVolume removing the -permanent parameter, as ephemeral volumes should be created with the New-HPOVProfileAttachVolume CMDLET. + -- Updated New-HPOVStorageVolume removing the -permanent parameter, as ephemeral volumes should be created + with the New-HPOVProfileAttachVolume CMDLET. -- Updated New-HPOVProfileAttachVolume to support creating shared volumes with a new '-shared' switch parameter. - -- Updated Add-HPOVEnclosure to allow the Firmware Baseline File Name, Name, URI or Object to be provided instead of just the name. - -- Added SAN Volume Copy support to Copy-HPOVProfile. Storage Volumes will now be copied based on the source Server Profile. + -- Updated Add-HPOVEnclosure to allow the Firmware Baseline File Name, Name, URI or Object to be provided + instead of just the name. + -- Added SAN Volume Copy support to Copy-HPOVProfile. Storage Volumes will now be copied based on the + source Server Profile. -- Renamed the following CMDLETs and created alias: Get-HPOVSppFile --> Get-HPOVBaseline Add-HPOVSppFile --> Add-HPOVBaseline