Just a hint here, you can also use

    Builtins.y2milestone("GetAdmCmd: #{ret}") if log

which is more Ruby-like text constriction