
    x[h              
           U d Z ddlZddlZddlmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ  ej                  e      Zdd	ged
gdZeed<   dZdede	dededdf
dZy)z;Autoinstall: Support ubuntu live-server autoinstall syntax.    N)subputil)Cloud)Config)
MetaSchema)PER_ONCEcc_ubuntu_autoinstallubuntuautoinstall)iddistros	frequencyactivate_by_schema_keysmeta)	subiquityzubuntu-desktop-installernamecfgcloudargsreturnc                 2   t        j                  |       t        j                  ddg      \  }}d }t        D ]  }t	        j
                  ||      s|} |s*t        j                  ddj                  t                     y t        j                  d|       y )NsnaplistzaSkipping autoinstall module. Expected one of the Ubuntu installer snap packages to be present: %sz, z8Valid autoinstall schema. Config will be processed by %s)
r   wait_for_snap_seededr   LIVE_INSTALLER_SNAPSresearchLOGwarningjoindebug)r   r   r   r   	snap_list_installer_present	snap_names           H/usr/lib/python3/dist-packages/cloudinit/config/cc_ubuntu_autoinstall.pyhandler'      s    e$99ff-.LIq) *	99Y	* )* 9II*+	

 	IIB    )__doc__loggingr   	cloudinitr   r   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   cloudinit.settingsr   	getLogger__name__r   r   __annotations__r   strr   r'    r(   r&   <module>r5      s    B  	   ! # . 'g! "z -	j  A  6 % t  r(   