403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/cloudinit/cmd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyo
�
oB�]c@s�dZddlZddlZddlZddlmZmZmZdeZdZ	dd�Zd�Zd�Z
d	�Zed
kr�e�ndS(sCCommandline utility to list the canonical cloud-id for an instance.i����N(tINSTANCE_JSON_FILEtMETADATA_UNKNOWNtcanonical_cloud_ids/run/cloud-init/%sscloud-idc
Cs�|s!tjdtdd�}n|jdddddtd	d
�|jdddddtd	d
�|jdddtdtd	dt�|S(s*Build or extend an arg parser for the cloud-id utility.

    @param parser: Optional existing ArgumentParser instance representing the
        query subcommand which will be extended to support the args of
        this utility.

    @returns: ArgumentParser with proper argument configuration.
    tprogtdescriptions/Report the canonical cloud-id for this instances-js--jsontactiont
store_truetdefaultthelps5Report all standardized cloud-id information as json.s-ls--longs=Report extended cloud-id information as tab-delimited string.s-is--instance-datattypes.Path to instance-data.json file. Default is %s(targparsetArgumentParsertNAMEtadd_argumenttFalsetstrtDEFAULT_INSTANCE_JSON(tparser((s:/usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyt
get_parsers		cCstjjd|�dS(Ns
ERROR: %s
i(tsyststderrtwrite(tmsg((s:/usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyterror+sc	Cs)ytjt|j��}WnEtk
r=td|j�Stk
rc}td|j|f�SX|jdi�}t|jdt	�|jdt	�|jdt	��}|jr�||d<tj
|dd	d
tdd�}n.|jrd||jdt	�f}n|}t
jjd|�dS(s�Handle calls to 'cloud-id' cli.

    Print the canonical cloud-id on which the instance is running.

    @return: 0 on success, 1 otherwise.
    sTFile not found '%s'. Provide a path to instance data json file using --instance-datasFile '%s' is not valid json. %stv1t
cloud_nametregiontplatformtcloud_idtindentit	sort_keyst
separatorst,s: s%s	%ss%s
i(R s: (tjsontloadtopent
instance_datatIOErrorRt
ValueErrortgetRRtdumpstTruetlongRtstdoutR(tnametargsR$teRRtresponse((s:/usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pythandle_args0s.
	
	cCs)t�}tjtt|j���dS(s,Tool to query specific instance-data values.N(RRtexitR0Rt
parse_args(R((s:/usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pytmainQs	t__main__(t__doc__R
R!Rtcloudinit.sourcesRRRRRtNoneRRR0R3t__name__(((s:/usr/lib/python2.7/site-packages/cloudinit/cmd/cloud_id.pyt<module>s
		!	

Youez - 2016 - github.com/yon3zu
LinuXploit