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
Merge branch 'branches/rudder/2.6' into branches/rudder/2.8
Merge branch 'branches/rudder/2.8' into branches/rudder/2.9