Skip to content

Commit a23339a

Browse files
committed
Update verbose messaging
1 parent ad23c09 commit a23339a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ function Invoke-AsBuiltReport.VMware.vSphere {
1919
[PSCredential] $Credential
2020
)
2121

22-
Write-PScriboMessage -IsWarning "Please refer to www.asbuiltreport.com for more detailed information about this project."
23-
Write-PScriboMessage -IsWarning "Do not forget to update your report configuration file after each new version release."
24-
Write-PScriboMessage -IsWarning "Documentation: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere"
25-
Write-PScriboMessage -IsWarning "Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues"
22+
Write-PScriboMessage -Plugin "Module" -IsWarning "Please refer to www.asbuiltreport.com for more detailed information about this project."
23+
Write-PScriboMessage -Plugin "Module" -IsWarning "Do not forget to update your report configuration file after each new version release."
24+
Write-PScriboMessage -Plugin "Module" -IsWarning "Documentation: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere"
25+
Write-PScriboMessage -Plugin "Module" -IsWarning "Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues"
2626

2727
# Check the current AsBuiltReport.VMware.vSphere module
2828
Try {
2929
$InstalledVersion = Get-Module -ListAvailable -Name AsBuiltReport.VMware.vSphere -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
3030

3131
if ($InstalledVersion) {
32-
Write-PScriboMessage -IsWarning "AsBuiltReport.VMware.vSphere $($InstalledVersion.ToString()) is currently installed."
32+
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($InstalledVersion.ToString()) is currently installed."
3333
$LatestVersion = Find-Module -Name AsBuiltReport.VMware.vSphere -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
3434
if ($LatestVersion -gt $InstalledVersion) {
35-
Write-PScriboMessage -IsWarning "AsBuiltReport.VMware.vSphere $($LatestVersion.ToString()) is available."
36-
Write-PScriboMessage -IsWarning "Run 'Update-Module -Name AsBuiltReport.VMware.vSphere -Force' to install the latest version."
35+
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($LatestVersion.ToString()) is available."
36+
Write-PScriboMessage -Plugin "Module" -IsWarning "Run 'Update-Module -Name AsBuiltReport.VMware.vSphere -Force' to install the latest version."
3737
}
3838
}
3939
} Catch {
40-
Write-PscriboMessage -IsWarning $_.Exception.Message
40+
Write-PscriboMessage -Plugin "Module" -IsWarning $_.Exception.Message
4141
}
4242
# Check if the required version of VMware PowerCLI is installed
4343
Get-RequiredModule -Name 'VMware.PowerCLI' -Version '13.2'

0 commit comments

Comments
 (0)