Skip to content
Snippets Groups Projects
Commit 8fced3b7 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

onevm: add info if no vm exists

parent 4ca2c562
No related branches found
No related tags found
1 merge request!115onevm: add info if no vm exists
......@@ -128,6 +128,7 @@ ph.perfadd "fail" "${iFail}"
ph.perfadd "unknown" "${iUnknown}"
ph.perfadd "other" "${iOther}"
if [ $iTotal -gt 0 ]; then
if [ $iUnknown -ne 0 ]; then
ph.setStatus "warning"
out+="WARNING: a vm with status [Unknown] was found.${NL}"
......@@ -172,7 +173,9 @@ do
done
echo
)
else
out+="Info: no vm was created yet."
fi
ph.status "OpenNebula VMs - Total: $iTotal .. running: $iRunning, Fail: $iFail, unknown: $iUnknown .. other: $iOther"
echo "$out"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment