| Server IP : 52.25.153.185 / Your IP : 216.73.216.194 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/cmd/devel/ |
Upload File : |
# 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.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():
"""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