File: //lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceWSL.cpython-312.pyc
�
쑛h�C � � � d Z ddlZddlZddlZddlmZ ddlmZmZmZ ddl Z ddl
mZmZm
Z
ddlmZ ddlmZ ddlmZ ej( e� Zd Zd
ZdZdZd
ZdZdZdefd�Zdee fd�Z defd�Z!defd�Z"dedee fd�Z#dee fd�Z$ G d� d� Z%dedee& fd�Z'dedede&fd�Z(dededeee% ee% f fd�Z)d ee% d!ee% dee fd"�Z*d#efd$�Z+ G d%� d&ejX � Z-e-ej\ ffgZ/d'� Z0y)(z?Datasource to support the Windows Subsystem for Linux platform.� N)�PurePath)�List�Optional�Tuple)�sources�subp�util)�Distro)�type_from_starts_with)�Pathsz/usr/bin/wslpathziid-datasource-wsl�%s.user-dataz
agent.yaml� landscape�client�installation_request_id�returnc � � t j t ddg� \ } }t | j � � j S )zL
Returns the name of the current WSL instance as seen from outside.
z-am�/)r �WSLPATH_CMDr �rstrip�name)�
root_net_path�_s �A/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceWSL.py�
instance_namer ! s8 � � �y�y�+�u�c�!:�;��M�1��M�(�(�*�+�0�0�0� c � � d} d}g }t j � j � D ]'