When setting the syslog hosts with the remediate option, old options remain. Test passes the first time when remediate is run, but subsequent tests fail.
Expected Behavior
Old Syslog hosts should be removed in favor of the new setting. then apply new hosts
When setting the syslog hosts with the remediate option, old options remain. Test passes the first time when remediate is run, but subsequent tests fail.
Expected Behavior
Old Syslog hosts should be removed in favor of the new setting. then apply new hosts
Current Behavior
New hosts are added, old hosts are left in
Possible Solution
[ScriptBlock]$Fix = { Set-VMHostSysLogServer -VMHost $Object -SysLogServer $null -ErrorAction Stop Set-VMHostSysLogServer -VMHost $Object -SysLogServer $Desired -ErrorAction Stop (Get-EsxCli -VMHost $Object).system.syslog.reload() }
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Test works with -remediate but fails otherwise
Your Environment