PHP WebShell
Текущая директория: /usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/__pycache__
Просмотр файла: guestcust_util.cpython-310.pyc
o
x[h�O � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZ ddl m
Z
ddlmZm
Z
ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ e �e�ZdZd
ZdZdZ dZ!dZ"dd� Z#dXdd�Z$dd� Z%dd� Z&dd� Z'dd� Z(dd� Z)d d!� Z*d"d#� Z+d$d%� Z, dYd(d)�Z-d*d+� Z.d,d-� Z/d.d/� Z0d0d1� Z1d2d3� Z2 dZd6d7�Z3d8d9� Z4d:d;� Z5d<d=� Z6d>d?� Z7d@dA� Z8dBdC� Z9dDdE� Z:dFdG� Z;dHdI� Z<dJdK� Z=dLdM� Z>dNdO� Z?dPdQ� Z@dRdS� ZAdTdU� ZBdVdW� ZCdS )[� N)�performance�subp�util� )�Config)�PostCustomScript�PreCustomScript)�
ConfigFile)�NicConfigurator)�PasswordConfigurator)�GuestCustErrorEnum)�GuestCustEventEnum)�GuestCustStateEnumz/var/log/cloud-init.log�queryNicsSupported� connected�/var/run/vmware-imc� deployPkgzenable-custom-scriptsc
C s� | sd S d}d}z"t �d| � tjd| gdgd�\}}|r&|�� }W ||fS W ||fS tyI } zt �d� t �|� W Y d }~||fS d }~ww )N� zError sending the RPC commandzSending RPC command: %szvmware-rpctoolr )�rcszFailed to send RPC command)�logger�debugr �rstrip� Exception� exception)�rpc�out�err�e� r �U/usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/guestcust_util.py�send_rpc, s$
��
��r c C s<