Fixes #8551 - host recieves correct smart_class_parameter value when multiple overrides in inherited Host Groups exist for parameter

use do/end for multi-line blocks (I wonder if rubocop catches that)