Skip to content

Commit

Permalink
Fix body hashtable detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAMA committed May 15, 2019
1 parent 6daf148 commit c3e6fdc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion module/Public/Invoke-nbApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Invoke-nbApi {
)
$PSCmdlet.ThrowTerminatingError($errorRecord)
}
if ($Body.GetType().FullName -eq [hashtable].FullName)
if ($null -ne $Body -and $Body.GetType().FullName -eq [hashtable].FullName)
{
Write-Verbose -Message "Converting the hashtable body into an object"
$Body = [PSCustomObject]$Body
Expand Down
2 changes: 1 addition & 1 deletion module/Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.3
2.3.5
2 changes: 1 addition & 1 deletion module/powerbox.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'powerbox.psm1'

# Version number of this module.
ModuleVersion = '2.3.3'
ModuleVersion = '2.3.5'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions module/powerbox.psm1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore


# Include all function files.
Get-ChildItem $PSScriptRoot\Public\*.ps1, $PSScriptRoot\Private\*.ps1 | ForEach-Object {
# Include all function files. (not including $PSScriptRoot\Private\*.ps1 because those are used to build the module)
Get-ChildItem $PSScriptRoot\Public\*.ps1 | ForEach-Object {
. $PSItem.FullName
}

Expand Down

0 comments on commit c3e6fdc

Please sign in to comment.