host_protections.py revision 25c0b8cb56358f22dccf7fdc32dd1662787dc9ca
1import enum, global_config 2 3Protection = enum.Enum('No protection', # Repair can do anything to 4 # this host. 5 'Repair software only', # repair should try to fix any 6 # software problem 7 'Repair filesystem only', # Repair should only try to 8 # recover the file system. 9 'Do not repair' # Repair should not touch this 10 # host. 11 ) 12 13default = Protection.get_value( 14 global_config.global_config.get_config_value( 15 'HOSTS', 'default_protection')) 16 17choices = Protection.choices() 18