Hi, if I have code like this and I want to run the...
# puppet
j
Hi, if I have code like this and I want to run the next bit based on the 'returns' value, how do I reference that returns value? Like, if 'returns' == 0 do this thing.
exec { 'check_az_applicationmonitor_module':
command   => 'powershell.exe -NoProfile -Command "if (-not (Get-Module -ListAvailable -Name az.applicationmonitor)) { exit 1 }"',
path      => 'C:/Windows/System32/WindowsPowerShell/v1.0',
returns   => [0],
logoutput => true,
}
Thanks