Fix a regression from the control_segment -> Host refactoring of the
repair code. Importing the host_protections on the client will
fail since global_config.ini is unavailable there. However this is
more of a host protection bug than a repair code bug, as common_lib
code should be usable on a standalone client (or at least importable).

This change allows the loading of the "default" host protection to
fail, as long as the failure reason is a problem is a complete lack
of a config file (and not just an incomplete one, which is still a
failure). It does mean that host_protections.default is undefined
on clients, but this shouldn't be a problem.

Risk: Low
Visibility: Make

Signed-off-by: John Admanski <jadmanski@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3654 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed