??????????????
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©ddlZddlZddlmZddlmZddlmZeZ y$ddl m Z ddl m Z Wnek r‘eZ eZ nXdd d„ƒYZdS( iÿÿÿÿN(tenviron(t string_types(t AnsibleModule(t OneException(t OneServertOpenNebulaModulecBsReZdZededdddgdejdƒƒdedddejd ƒƒd eddd edd gdejd ƒƒdededdƒdeddddƒƒZed#d„Z d„Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd#d#d#d „Zd!„Zd"„ZRS($s  Base class for all OpenNebula Ansible Modules. This is basically a wrapper of the common arguments, the pyone client and some utility methods. tapi_urlttypetstrtaliasest api_endpointtdefaulttONE_URLt api_usernamet ONE_USERNAMEt api_passwordtno_logt api_tokent ONE_PASSWORDtvalidate_certstboolt wait_timeouttinti,cCsttj}|j|ƒtd|d|d|ƒ|_tdtddddƒ|_|jƒ|_ |j ƒ|_ dS(Nt argument_spectsupports_check_modetmutually_exclusivetchangedtoriginal_messagettmessage( Rt common_argstupdateRtmoduletdicttFalsetresulttcreate_one_clienttonetresolve_parameterstresolved_parameters(tselfRRRt module_args((sC/usr/lib/python2.7/site-packages/ansible/module_utils/opennebula.pyt__init__&s      cCsAttdƒrtjƒ}nd}ts:|jdƒn|jjjdƒrg|jjjdƒ}n |jdƒ|jjjdƒr¡|jjjdƒ}n |jdƒ|jjjdƒrÛ|jjjdƒ}n |jdƒd ||f}|jjjd ƒ r0d t kr0t |d |d |ƒSt ||ƒSdS(sc Creates an XMLPRC client to OpenNebula. Returns: the new xmlrpc client. t_create_unverified_contexts!pyone is required for this moduleRsCEither api_url or the environment variable ONE_URL must be providedR sMEither api_username or the environment vairable ONE_USERNAME must be providedRsMEither api_password or the environment vairable ONE_PASSWORD must be provideds%s:%sRtPYTHONHTTPSVERIFYtsessiontcontextN( thasattrtsslR+tNonet HAS_PYONEtfailR tparamstgetRR(R(tno_ssl_validation_contextturltusernametpasswordR-((sC/usr/lib/python2.7/site-packages/ansible/module_utils/opennebula.pyR$5s$    "cCs|jjƒdS(s* Close the pyone session. N(R%t server_close(R(((sC/usr/lib/python2.7/site-packages/ansible/module_utils/opennebula.pytclose_one_client]scCs3t|dƒr|jƒn|jjd|ƒdS(sœ Utility failure method, will ensure pyone is properly closed before failing. Args: msg: human readable failure reason. R%tmsgN(R/R;R t fail_json(R(R<((sC/usr/lib/python2.7/site-packages/ansible/module_utils/opennebula.pyR3cs cCs3t|dƒr|jƒn|jj|jdS(s\ Utility exit method, will ensure pyone is properly closed before exiting. R%N(R/R;R t exit_jsonR#(R(((sC/usr/lib/python2.7/site-packages/ansible/module_utils/opennebula.pytexitms cCst|jjƒ}d|jjkr{|jjjƒ}xB|jD]4}|j|jjjdƒkr@|j |ds