??????????????
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‘ddlmZmZmZeZddlZddlmZddl m Z ddl m Z de fd„ƒYZde fd „ƒYZd d d „ƒYZdS( i(tabsolute_importtdivisiontprint_functionN(t to_native(t AnsibleModule(t fetch_urltUTMModuleConfigurationErrorcB`seZd„Zd„ZRS(cK`s/tt|ƒj||ƒ||_||_dS(N(tsuperRt__init__tmsgtmodule_fail_args(tselfR targs((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR)s cC`s |jd|jd|jƒdS(NR tother(t fail_jsonR R (R tmodule((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pytdo_fail.s(t__name__t __module__RR(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR's t UTMModulec B`s;eZdZeeddddeedd„ Zd„ZRS(s† This is a helper class to construct any UTM Module. This will automatically add the utm host, port, token, protocol, validate_certs and state field to the module. If you want to implement your own sophos utm module just initialize this UTMModule class and define the Payload fields that are needed for your module. See the other modules like utm_aaa_group for example. c C`stdtdddtdiƒdtdddtƒdtdd dd ƒd tdddtd tƒd tdddtdddddgƒdtdddtdtƒdtdddddgƒƒ} tt|ƒj|j| |ƒ|||||||| | ƒ dS(Ntheadersttypetdicttrequiredtdefaulttutm_hosttstrtutm_porttinti\t utm_tokentno_logt utm_protocolthttpstchoicesthttptvalidate_certstbooltstatetpresenttabsent(RtFalsetTrueRRRt _merge_specs( R t argument_spect bypass_checksRtcheck_invalid_argumentstmutually_exclusivetrequired_togethertrequired_one_oftadd_file_common_argstsupports_check_modet required_ift default_specs((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR:s'$ cC`s|jƒ}|j|ƒ|S(N(tcopytupdate(R R4t custom_specstresult((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR*Js  N(RRt__doc__R(tNoneRR*(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR2s   tUTMcB`s\eZed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z RS( c`sς|ˆ_|ˆ_|jjdƒd|jjdƒdt|jjdƒƒd|dˆ_|ˆ_dˆjjd <|jjd ƒˆjjd ess The keys s' to check are not in the modules keys: N( t info_onlyRtparamstgetRt request_urlRAtalltkeysR(R RtendpointRARD((R sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRRs  O %cC`syj|js_|jjjdƒdkr4|jƒqi|jjjdƒdkri|jƒqin |jƒWn,tk r˜}|jjdt |ƒƒnXdS(NR%R&R'R ( RDRRERFt_addt_removet_infot ExceptionRR(R te((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pytexecuteks  cC`sŒ|j|j|jƒ\}}|ddkrM|jjdtj|ƒƒn;|dkro|jjdtƒn|jjd|dtƒdS(s7 returns the info for an object in utm tstatusiR8tchangedN( t _lookup_entryRRGRtjsontloadsR:t exit_jsonR((R tinfoR8((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRMws  c C`sΡ|jƒ}t}|j|j|jƒ\}}|ddkr_|jjdtj|ƒƒnn|jj|jj ƒ}|d kr t |j|jddd|d|ƒ\}}|ddkrγ|jjdtj|d ƒƒnt }|j tj|jƒƒƒ}nͺ|j|j|j|ƒr΄t |j|j|d dd d|d|ƒ\}}|ddkr|jjdtj|d ƒƒnt }|j tj|jƒƒƒ}n|jjd|d |ƒd S(s6 adds or updates a host object on utm RQiR8tmethodtPOSTRtdataR tbodyt_reftPUTRRN(t_combine_headersR(RSRRGRRTRUtjsonifyRER:RR)t _clean_resulttreadt_is_object_changedRARV(R tcombined_headerst is_changedRWR8tdata_as_json_stringtresponse((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRK„s.  #! #!cC`sdidd6dd6}|jjjdƒdk rZ|jƒ}|j|jjjdƒƒn|}|S(s This will combine a header default with headers that come from the module declaration :return: A combined headers dict sapplication/jsontAccepts Content-typeRN(RRERFR:R5R6(R tdefault_headersR8((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR^€s  c C`sΨt}|j|j|jƒ\}}|dk rΑt|j|j|ddddidd6dd6d |jj|jjƒƒ\}}|d d krΈ|jjd t j |d ƒƒqΑt }n|jj d|ƒdS(s, removes an object from utm R\RXtDELETERsapplication/jsonRgRHsX-Restd-Err-AckRZRQiR R[RRN( R(RSRRGR:RR_RERRTRUR)RV(R RdRWR8Rf((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRL±s  !# c `sƒtˆ|dddidd6ƒ\}}d}|dk rytj|jƒƒ}ttt‡fd†|ƒƒdƒ}n||fS(so Lookup for existing entry :param module: :param request_url: :return: RXtGETRsapplication/jsonRgc`s|dˆjjdƒkS(Ntname(RERF(td(R(sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pytΜsN(RR:RTRURatnexttitertfilter(R RRGRfRWR8tresults((RsB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRSΑs ( *cC`s<|d=|d=|d=|d=|d=|d=|d=|d=|S( s” Will clean the result from irrelevant fields :param result: The result from the query :return: The modified result RRRRR#R?R@R%((R R8((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR`ΟscC`s5x.|D]&}|jj|ƒ||krtSqWtS(sέ Check if my object is changed :param keys: The keys that will determine if an object is changed :param module: The module :param result: The result from the query :return: (RERFR)R((R RIRR8tkey((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyRbίs ( RRR(RRPRMRKR^RLRSR`Rb(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyR;Ps    ((t __future__RRRRt __metaclass__RTtansible.module_utils._textRtansible.module_utils.basicRtansible.module_utils.urlsRRNRRR;(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/utm_utils.pyts