blob: 47f237806acac4637bba6e0fa99c0e4c857a3f27 [file] [log] [blame]
showarddf062562008-07-03 19:56:37 +00001import enum, global_config
2
mblighb024fb12008-07-11 21:24:21 +00003Protection = enum.Enum('No protection', # Repair can do anything to
4 # this host.
mbligh25c0b8c2009-01-24 01:44:17 +00005 'Repair software only', # repair should try to fix any
6 # software problem
mblighb024fb12008-07-11 21:24:21 +00007 'Repair filesystem only', # Repair should only try to
8 # recover the file system.
showardc9ae1782009-01-30 01:42:37 +00009 'Do not repair', # Repair should not touch this
mblighb024fb12008-07-11 21:24:21 +000010 # host.
showardc9ae1782009-01-30 01:42:37 +000011 'Do not verify', # Don't even try to verify
12 # this host
showarddf062562008-07-03 19:56:37 +000013 )
14
15default = Protection.get_value(
16 global_config.global_config.get_config_value(
17 'HOSTS', 'default_protection'))
18
19choices = Protection.choices()