| Server IP : 3.7.136.76 / Your IP : 216.73.216.142 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-39-148 7.0.0-1010-aws #10~24.04.1-Ubuntu SMP PREEMPT Mon Jul 27 17:41:33 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/2987/lib/python3/dist-packages/cloudinit/__pycache__/ |
Upload File : |
o
��ig � @ s~ d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZ e�
e�Zdefdd �ZG d
d� d�ZdS )z#A module for common socket helpers.� N)�suppress)�Dict)�performance)�DEFAULT_RUN_DIR�messagec C s� t j�dd�}|sdS |d dkr|�ddd� n
|d dkr#td ��t�tjtjtjB ��}t �
d
t| �� |�|� |�
| �d�� W d � dS 1 sOw Y dS )z[Send a sd_notify message.
:param message: sd-notify message (must be valid ascii)
�
NOTIFY_SOCKET� Nr �@� � �/zUnsupported socket typezSending sd_notify(%s)�ascii)�os�environ�get�replace�OSError�socket�AF_UNIX�
SOCK_DGRAM�SOCK_CLOEXEC�LOG�info�str�connect�sendall�encode)r �socket_path�sock� r �2/usr/lib/python3/dist-packages/cloudinit/socket.py� sd_notify s �
"�r! c @ s<