| Server IP : 173.249.148.11 / Your IP : 216.73.216.179 Web Server : Apache/2.4.68 (AlmaLinux) System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64 User : devinter ( 1006) PHP Version : 8.3.35 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /snap/core/17284/usr/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