404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.22.71.254: ~ $
# This file is part of cloud-init. See LICENSE file for license information.

"""Common cloud-init devel commandline utility functions."""


import logging

from cloudinit import log
from cloudinit.helpers import Paths
from cloudinit.stages import Init


def addLogHandlerCLI(logger, log_level):
    """Add a commandline logging handler to emit messages to stderr."""
    formatter = logging.Formatter("%(levelname)s: %(message)s")
    log.setupBasicLogging(log_level, formatter=formatter)
    return logger


def read_cfg_paths() -> Paths:
    """Return a Paths object based on the system configuration on disk."""
    init = Init(ds_deps=[])
    init.read_cfg()
    return init.paths


# vi: ts=4 expandtab

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 709 B 0644
hotplug_hook.py File 8.92 KB 0644
logs.py File 9.18 KB 0644
make_mime.py File 4.19 KB 0644
net_convert.py File 5.45 KB 0644
parser.py File 1.35 KB 0644
render.py File 3.5 KB 0644