Fixes #4440: correct the logic that links machine, node, and inventory status
Merge pull request #26 from fanf/bug_4440/correct_the_logic_that_move_machine_with_node_status

Fixes #4440: correct the logic that links machine, node, and inventory status