fixes #8739 - use global setting when hostgroup root_pass is blank
A blank (not nil) root_pass on hostgroups was preventing correct inheritance from settings in both hosts and nested hostgroups.
root_pass was also being copied from parents/settings to hostgroups when they were saved, when it should remain blank to continue inheriting. Only hosts are meant to copy the password on save.
(cherry picked from commit db17629709a649bd49b83d60422b905c9db965be)
Related issues
Bug #8739: default root_pass not used if password field is an empty string
fixes #8739 - use global setting when hostgroup root_pass is blank
A blank (not nil) root_pass on hostgroups was preventing correct inheritance
from settings in both hosts and nested hostgroups.
root_pass was also being copied from parents/settings to hostgroups when they
were saved, when it should remain blank to continue inheriting. Only hosts
are meant to copy the password on save.
(cherry picked from commit db17629709a649bd49b83d60422b905c9db965be)