| Server IP : 104.21.21.239 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/__pycache__/ |
Upload File : |
a
�½b� � @ sj d dl Z d dlZd dlZd dlZd dlZdadZdZddd�Zdd� Z e j
dd d
��Zdd� Zd
d� Z
dS )� Nz/run/cloud-init/tmpz/var/tmp/cloud-initFc C s� | dur| S |r:t }tj�|�s6t�|� t�|d� |S trBtS t�� dkrTt}ntj �
dd�}tj�|�s�t�|� t�|d� |a|S )a% Return the proper 'dir' argument for tempfile functions.
When root, cloud-init will use /run/cloud-init/tmp to avoid
any cleaning that a distro boot might do on /tmp (such as
systemd-tmpfiles-clean).
If the caller of this function (mkdtemp or mkstemp) was provided
with a 'dir' argument, then that is respected.
@param odir: original 'dir' arg to 'mkdtemp' or other.
@param needs_exe: Boolean specifying whether or not exe permissions are
needed for tempdir. This is needed because /run is mounted noexec.
Ni� r ZTMPDIRz/tmp)�_EXE_ROOT_TMPDIR�os�path�isdir�makedirs�chmod�_TMPDIR�getuid�_ROOT_TMPDIR�environ�get)Zodir� needs_exe�tdir� r �8/usr/lib/python3.9/site-packages/cloudinit/temp_utils.py�_tempfile_dir_arg s$
r c sX t | �dd �| �dd��| d<