Skip to content

Commit

Permalink
- [#538] Fixed HPEOneView.Networking.SnmpV3User class to return NA in…
Browse files Browse the repository at this point in the history
…stead of NONE when authentication protocol and no privacy protocol setting.

- [#552] Fixed duplicate key when attempting to convert from JSON to object with baselines.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
  • Loading branch information
ChrisLynchHPE committed Feb 11, 2021
1 parent 5246213 commit 90974bd
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
14 changes: 5 additions & 9 deletions HPEOneView.550.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'HPEOneView.550.psm1'

# Version number of this module.
ModuleVersion = '5.50.2680.1687'
ModuleVersion = '5.50.2689.2416'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -155,14 +155,10 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = "Release 5.50.2680.1687
- [#534] Fixed Show-OVFirmwareReport mishandling non-existent firmware baselines.
- [#539] Fixed New-OVSnmpTrapDestination and the object it returns.
- [#540] Fixed New-OVSnmpTrapDestination to handle SNMPv3 Engine ID correctly.
- [#548] Fixed Enable-OVDeviceUid and Disable-OVDeviceUid where a resource eTag wasn't being passed to the API for Synergy Frames.
- Added Get-OVSmtpAlertEmailFilter, Set-OVSmtpAlertEmailFilter and Remove-OVSmtpAlertEmailFilter Cmdlets to manage email/SMTP alert filtering.
- Fixed New-OVServerProfileTemplate mishandling async task in an error state containing more than one taskError message."
ReleaseNotes = "Release 5.50.2689.2416
- [#538] Fixed HPOneView.Networking.SnmpV3User class to return NA instead of NONE when authentication protocol and no privacy protocol setting.
- [#552] Fixed duplicate key when attempting to convert from JSON to object with baselines."

# Prerelease string of this module
# Prerelease = ''
Expand Down
7 changes: 4 additions & 3 deletions HPEOneView.550.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if ($PSVersionTable.PSVersion -match '5.*')
}

# Set HPEOneView.POSH Library Version
[Version]$ModuleVersion = '5.50.2680.1687'
[Version]$ModuleVersion = '5.50.2689.2416'
New-Variable -Name PSLibraryVersion -Scope Global -Value ([HPEOneView.Library.Version]::new($ModuleVersion)) -Option Constant -ErrorAction SilentlyContinue
$Global:CallStack = Get-PSCallStack
$script:ModuleVerbose = [Bool]($Global:CallStack | Where-Object { $_.Command -eq "<ScriptBlock>" }).position.text -match "-verbose"
Expand Down Expand Up @@ -6062,12 +6062,14 @@ function Send-OVRequest
# Added for #407
$_DuplicateJsonPattern = @('\"NVIDIA TESLA M10\"\:\[[\w]*[\,]?[\w]*\][\,]?',
'\"[I|i]LO\"\:\[[null\,]*\"\d\.\d+\"\][,]?',
'\"[rRiI]{2}10\"\:\[[null\,]*\"\d\.\d+\"\][,]?',
'\"[rRiI]{2}11\"\:\[[null\,]*\"\d\.\d+\"\][,]?',
'(?:\"HPE SN1100Q 16Gb 2[P|p] FC HBA\"\:\[[null\,]*\"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\"*((?:\,\"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\")*)\](\,)?)')

ForEach ($_Pattern in $_DuplicateJsonPattern)
{

if ([RegEx]::Matches($FinalResponse, $_Pattern))
if ([RegEx]::Matches($FinalResponse, $_Pattern).Success)
{

$FinalResponse = [Regex]::Replace($FinalResponse, $_Pattern, "")
Expand Down Expand Up @@ -22918,7 +22920,6 @@ function New-OVSnmpV3User

}


[HPEOneView.Networking.SnmpV3User]::new($Username, $_CredentialsCol, $SnmpAuthProtocolEnum[$AuthProtocol], $SnmpPrivProtocolEnum[$PrivProtocol])

}
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>5.50.2680.1689</UICultureVersion>
<UICultureVersion>5.50.2689.2417</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://hewlettpackard.github.io/POSH-HPEOneView/UpdateHelp</ModuleContentURI>
<Version>5.50.2680.1687</Version>
<Version>5.50.2689.2416</Version>
</ModuleInfo>
3 changes: 3 additions & 0 deletions debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[0209/142802.417:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
[0210/124859.854:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
[0210/125222.338:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
2 changes: 1 addition & 1 deletion en-US/HPEOneView.550.psm1-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103491,5 +103491,5 @@ Once the task enters the running state, the Cmdlet will return the task resource
</maml:navigationLink>
</maml:relatedLinks>
</command:command>
<!--Edited on: 2021-02-02T23:02:51:96.963Z-->
<!--Edited on: 2021-02-11T04:55:31:97.976Z-->
</helpItems>
Expand Down
6 changes: 6 additions & 0 deletions en-US/about_HPEOneView.550.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ SHORT DESCRIPTION

WHAT'S NEW

Release 5.50.2689.2416

-- [#538] Fixed HPEOneView.Networking.SnmpV3User class to return NA instead of NONE when
authentication protocol and no privacy protocol setting.
-- [#552] Fixed duplicate key when attempting to convert from JSON to object with baselines.

Release 5.50.2680.1687

-- [#534] Fixed Show-OVFirmwareReport mishandling non-existent firmware baselines.
Expand Down
Binary file modified lib/HPEOneView_Classes.dll
Binary file not shown.

0 comments on commit 90974bd

Please sign in to comment.