??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó ßUdac@s¼ddlZddlZddlmZddlmZddlmZddlm Z ej Z ej Z ddl Z de fd„ƒYZ defd „ƒYZd efd „ƒYZdS( iÿÿÿÿN(tgeneric_urlparse(turlparse(t http_client(tto_texttUnixHTTPConnectioncBseZd„Zd„ZRS(cCstj|dƒ||_dS(Nt localhost(tHTTPConnectiont__init__tpath(tselfR((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR.scCs5tjtjtjƒ}|j|jƒ||_dS(N(tsockettAF_UNIXt SOCK_STREAMtconnectRtsock(R R((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR 2s(t__name__t __module__RR (((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR-s tLXDClientExceptioncBseZd„ZRS(cKs||_||_dS(N(tmsgtkwargs(R RR((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR9s (RRR(((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR8st LXDClientcBs_eZdded„Zdddd„Zd„Zdddd„Zd„Ze d„ƒZ RS(cCsÛ||_||_g|_|jdƒrš||_||_tt|jƒƒ}tj tj j ƒ}|j |d|ƒt |jdƒd|ƒ|_n=|jdƒrË|tdƒ}t|ƒ|_n tdƒ‚dS(sçLXD Client. :param url: The URL of the LXD server. (e.g. unix:/var/lib/lxd/unix.socket or https://127.0.0.1) :type url: ``str`` :param key_file: The path of the client certificate key file. :type key_file: ``str`` :param cert_file: The path of the client certificate file. :type cert_file: ``str`` :param debug: The debug flag. The request and response are stored in logs when debug is true. :type debug: ``bool`` shttps:tkeyfiletnetloctcontextsunix:s"URL scheme must be unix: or https:N(turltdebugtlogst startswitht cert_filetkey_fileRRtssltcreate_default_contexttPurposet CLIENT_AUTHtload_cert_chaintHTTPSConnectiontgett connectiontlenRR(R RRRRtpartstctxtunix_socket_path((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR?s     !c Cs„|j||d|d|d|ƒ}|ddkr€dj|dƒ}|jd|ƒ}|d d d kr€|j|ƒq€n|S( Nt body_jsontok_error_codesttimeoutttypetasyncs{0}/waitt operationtGETtmetadatatstatustSuccess(t _send_requesttformatt_raise_err_from_json(R tmethodRR*R+R,t resp_json((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pytdo[s$cCs*idd6|d6}|jddd|ƒS(NtclientR-tpasswordtPOSTs/1.0/certificatesR*(R4(R ttrust_passwordR*((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyt authenticatedsc CsEytj|ƒ}|jj||d|ƒ|jjƒ}|jƒ}t|ddƒ}tj|ƒ} |jj idd6i|d6|d6|d6|d 6d 6i| d6d 6ƒ| j ddƒ} | d kr|dk rí| d |krí| S| d dkr| S|j | ƒn| SWn(t jk r@} tdd| ƒ‚nXdS(Ntbodyterrorstsurrogate_or_stricts sent requestR-R7RtjsonR,trequesttresponseterrort error_codes"Certificate already in trust stores cannot connect to the LXD serverterr(RBtdumpsR%RCt getresponsetreadRtloadsRtappendR$tNoneR6R RER( R R7RR*R+R,R?trespt resp_dataR8t resp_typete((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR4hs*  # cCs;i}|jr|j|dR4R6t staticmethodRR(((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyR>s   (R Rtansible.module_utils.urlsRt+ansible.module_utils.six.moves.urllib.parseRtansible.module_utils.six.movesRtansible.module_utils._textRRR#RBRt ExceptionRtobjectR(((s</usr/lib/python2.7/site-packages/ansible/module_utils/lxd.pyts