Skip to content

Commit

Permalink
Release 1.20.0110.0
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Chris Lynch committed Mar 31, 2015
1 parent 63ddb9d commit 1a6a60a
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
Binary file modified HPOneView.120.psd1
Binary file not shown.
8 changes: 5 additions & 3 deletions HPOneView.120.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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"}))) {
Expand Down Expand Up @@ -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")]
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<SupportedUICultures>
<UICulture>
<UICultureName>en-US</UICultureName>
<UICultureVersion>1.20.109.6</UICultureVersion>
<UICultureVersion>1.20.110.6</UICultureVersion>
</UICulture>
</SupportedUICultures>
</HelpInfo>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ModuleInfo>
<ModuleContentURI>http://www.hp.com/go/powershell/updatehelp/</ModuleContentURI>
<Version>1.20.109.2</Version>
<Version>1.20.110.2</Version>
</ModuleInfo>
22 changes: 16 additions & 6 deletions en-US/about_HPOneView.120.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a6a60a

Please sign in to comment.