Skip to content

Commit 95cf51a

Browse files
author
JustinGrote
committed
Cosmetic: Move NmapResult to end of object
1 parent 252afa9 commit 95cf51a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PoshNmap/Private/FormatNmapXml.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ The raw formatting is still available as the nmaprun property on the object, to
3939
PSTypeName = 'PoshNmapHost'
4040
}
4141

42-
#Add raw host reference
43-
$entry.nmapResult = $hostnode
44-
4542
# Extract state element of status
4643
$entry.Status = $hostnode.status.state.Trim()
4744
if ($entry.Status.length -lt 2) { $entry.Status = $null }
@@ -114,6 +111,10 @@ The raw formatting is still available as the nmaprun property on the object, to
114111
}
115112
}
116113
$i++ #Progress counter...
114+
115+
#Add raw host reference
116+
$entry.nmapResult = $hostnode
117+
117118
[PSCustomObject]$entry
118119
}
119120
}

0 commit comments

Comments
 (0)