128 #È 358ËÃÉ f #
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
%� 355ËÃÉ c %The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
'� 355ËÃÉ c 'The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
: )ˆl–Ðz¾”ji?u4 \¸î*bÑ¿Ç ƒpkÆa–ß=¿JJj"Tâ�fã`¸ËjbÑ¿Ë ˆ )#!/usr/bin/env python3 # Copyright (C) 2017 Canonical Ltd. # # This file is part of cloud-init. See LICENSE file for license information. """Define 'clean' utility and handler as part of cloud-init command line.""" import argparse import glob import os import sys from cloudinit import settings from cloudinit.distros import uses_systemd from cloudinit.log import log_util from cloudinit.net.netplan import CLOUDINIT_NETPLAN_FILE from cloudinit.stages import Init from cloudinit.subp import ProcessExecutionError, runparts, subp from cloudinit.util import ( del_dir, del_file, get_config_logfiles, is_link, write_file, ) ETC_MACHINE_ID = "/etc/machine-id" GEN_NET_CONFIG_FILES = [ CLOUDINIT_NETPLAN_FILE, "/etc/NetworkManager/conf.d/99-cloud-init.conf", "/etc/NetworkManager/conf.d/30-cloud-init-ip6-addr-gen-mode.conf", "/etc/NetworkManager/system-connections/cloud-init-*.nmconnection", "/etc/systemd/network/10-cloud-init-*.network", "/etc/network/interfaces.d/50-cloud-init.cfg", ] GEN_SSH_CONFIG_FILES = [ "/etc/ssh/sshd_config.d/50-cloud-init.conf", ] def get_parser(parser=None): """Build or extend an arg parser for clean utility. @param parser: Optional existing ArgumentParser instance representing the clean subcommand which will be extended to support the args of this utility. @returns: ArgumentParser with proper argument configuration. """ if not parser: parser = argparse.ArgumentParser( prog="clean", description=( "Remove logs, configs and artifacts so cloud-init re-runs " "on a clean system" ), ) parser.add_argument( "-l", "--logs", action="store_true", default=False, dest="remove_logs", help="Remove cloud-init logs.", ) parser.add_argument( "--machine-id", action="store_true", default=False, help=( "Set /etc/machine-id to 'uninitialized\n' for golden image" "creation. On next boot, systemd generates a new machine-id." " Remove /etc/machine-id on non-systemd environments." ), ) parser.add_argument( "-r", "--reboot", action="store_true", default=False, help="Reboot system after logs are cleaned so cloud-init re-runs.", ) parser.add_argument( "-s", "--seed", action="store_true", default=False, dest="remove_seed", help="Remove cloud-init seed directory /var/lib/cloud/seed.", ) parser.add_argument( "-c", "--configs", choices=[ "all", "ssh_config", "network", ], default=[], nargs="+", dest="remove_config", h