You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
625 B
26 lines
625 B
from leapp.models import fields, Model
|
|
from leapp.topics import SystemFactsTopic
|
|
|
|
|
|
class DefaultGrub(Model):
|
|
"""
|
|
A model with '/etc/default/grub' option as key / value
|
|
"""
|
|
topic = SystemFactsTopic
|
|
|
|
name = fields.String()
|
|
""" Option name, e.g. GRUB_TIMEOUT """
|
|
value = fields.String()
|
|
""" Option value, e.g. '5' in case of GRUB_TIMEOUT=5 """
|
|
|
|
|
|
class DefaultGrubInfo(Model):
|
|
"""
|
|
A message with '/etc/default/grub' content
|
|
"""
|
|
|
|
topic = SystemFactsTopic
|
|
|
|
default_grub_info = fields.List(fields.Model(DefaultGrub))
|
|
""" List of '/etc/default/grub' options as key / value """
|