fix indentation
rename vm state and make it a result not a fact.
vm in error state should result in fail