def retrieve(self):
        cfg = dict(NodeConfigFileSection.retrieve(self))
        try:
            if cfg['node_register'] is not None:
                return strtobool(cfg['node_register'])
        except ValueError:
            LOGGER.error("OVIRT_NODE_REGISTER must be a bool!")

        return False
    def retrieve(self):
        cfg = dict(NodeConfigFileSection.retrieve(self))
        try:
            if cfg['node_register'] is not None:
                return strtobool(cfg['node_register'])
        except ValueError:
            LOGGER.error("OVIRT_NODE_REGISTER must be a bool!")

        return False
    def retrieve(self):
        cfg = dict(NodeConfigFileSection.retrieve(self))

        # Replace the string 'None' to None type
        for item in cfg:
            if cfg[item] == 'None':
                cfg[item] = None

        if cfg['mserver'] is not None and ":" in cfg['mserver']:
            cfg['mserver'], cfg['mport'] = cfg['mserver'].split(":")

        return cfg
    def retrieve(self):
        cfg = dict(NodeConfigFileSection.retrieve(self))

        # Replace the string 'None' to None type
        for item in cfg:
            if cfg[item] == 'None':
                cfg[item] = None

        if cfg['mserver'] is not None and ":" in cfg['mserver']:
            cfg['mserver'], cfg['mport'] = cfg['mserver'].split(":")

        return cfg
示例#5
0
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     cfg.update({"enabled":
                 True if cfg["enabled"] == "1" else None})
     return cfg
示例#6
0
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     return cfg
示例#7
0
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     cfg.update({"enabled": True if cfg["enabled"] == "1" else None})
     return cfg
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     cfg.update({"pxe": True if cfg["pxe"] == "yes" else False})
     cfg.update({"force_enable": True if cfg["force_enable"] == "yes"
                 else False})
     return cfg
示例#9
0
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     return cfg
 def retrieve(self):
     cfg = dict(NodeConfigFileSection.retrieve(self))
     cfg.update({"pxe": True if cfg["pxe"] == "yes" else False})
     cfg.update(
         {"force_enable": True if cfg["force_enable"] == "yes" else False})
     return cfg