??????????????
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~dZddlZddlmZddlZddlZddddd„Zddded „Zd efd „ƒYZ dS( s³ This module adds shared support for generic cloud modules In order to use this module, include it as part of a custom module as shown below. from ansible.module_utils.cloud import CloudRetry The 'cloud' module provides the following common classes: * CloudRetry - The base class to be used by other cloud providers, in order to provide a backoff/retry decorator based on status codes. - Example using the AWSRetry class which inherits from CloudRetry. @AWSRetry.exponential_backoff(retries=10, delay=3) get_ec2_security_group_ids_from_names() @AWSRetry.jittered_backoff() get_ec2_security_group_ids_from_names() iÿÿÿÿN(twrapsi ii<cs‡‡‡‡fd†}|S(sö Customizable exponential backoff strategy. Args: retries (int): Maximum number of times to retry a request. delay (float): Initial (base) delay. backoff (float): base of the exponent to use for exponential backoff. max_delay (int): Optional. If provided each delay generated is capped at this amount. Defaults to 60 seconds. Returns: Callable that returns a generator. This generator yields durations in seconds to be used as delays for an exponential backoff strategy. Usage: >>> backoff = _exponential_backoff() >>> backoff >>> list(backoff()) [2, 4, 8, 16, 32, 60, 60, 60, 60, 60] c3sLxEtdˆƒD]4}ˆˆ|}ˆdkr6|n t|ˆƒVqWdS(Ni(trangetNonetmin(tretrytsleep(tbackofftdelayt max_delaytretries(s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt backoff_genCs((R RRRR ((RRRR s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt_exponential_backoff0sics‡‡‡‡fd†}|S(s¬ Implements the "Full Jitter" backoff strategy described here https://www.awsarchitectureblog.com/2015/03/backoff.html Args: retries (int): Maximum number of times to retry a request. delay (float): Approximate number of seconds to sleep for the first retry. max_delay (int): The maximum number of seconds to sleep for any retry. _random (random.Random or None): Makes this generator testable by allowing developers to explicitly pass in the a seeded Random. Returns: Callable that returns a generator. This generator yields durations in seconds to be used as delays for a full jitter backoff strategy. Usage: >>> backoff = _full_jitter_backoff(retries=5) >>> backoff >>> list(backoff()) [3, 6, 5, 23, 38] >>> list(backoff()) [2, 1, 6, 6, 31] c3s@x9tdˆƒD](}ˆjdtˆˆd|ƒƒVqWdS(Nii(RtrandintR(R(t_randomRRR (s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyR `s((R RRR R ((R RRR s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt_full_jitter_backoffJst CloudRetrycBs›eZdZd Zed„ƒZed d„ƒZed d„ƒZ eddddd d„ƒZ edddd d „ƒZ eddd d d „ƒZ RS( s˜ CloudRetry can be used by any cloud provider, in order to implement a backoff algorithm/retry effect based on Status Code from Exceptions. cCsdS(sz Return the status code from the exception object Args: error (object): The exception itself. N((terror((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pytstatus_code_from_exceptionnscCsdS(s© Return True if the Response Code to retry on was found. Args: response_code (str): This is the Response Code that is being matched against. N((t response_codetcatch_extra_error_codes((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pytfoundvscs‡‡‡fd†}|S(s$ Retry calling the Cloud decorated function using the provided backoff strategy. Args: backoff_strategy (callable): Callable that returns a generator. The generator should yield sleep times for each retry of the decorated function. cs(tˆƒ‡‡‡‡fd†ƒ}|S(NcsÅxµˆƒD]ª}yˆ||ŽSWq tk r³}t|ˆjƒrªˆj|ƒ}ˆj|ˆƒr¡djt|ƒ|ƒ}tjtj|ƒt j |ƒq°|‚q´|‚q Xq Wˆ||ŽS(Ns{0}: Retrying in {1} seconds...( t Exceptiont isinstancet base_classRRtformattstrtsyslogtLOG_INFOttimeR(targstkwargsRteRtmsg(tbackoff_strategyRtclstf(s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt retry_funcˆs (R(R#R$(R!RR"(R#s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pytdeco‡s$((R"R!RR%((R!RR"s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt_backoff~s i iii<c Cs+|jtd|d|d|d|ƒ|ƒS(sE Retry calling the Cloud decorated function using an exponential backoff. Kwargs: retries (int): Number of times to retry a failed request before giving up default=10 delay (int or float): Initial delay between retries in seconds default=3 backoff (int or float): backoff multiplier e.g. value of 2 will double the delay each retry default=1.1 max_delay (int or None): maximum amount of time to wait between retries. default=60 R RRR(R&R (R"R RRRR((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pytexponential_backoff s cCs%|jtd|d|d|ƒ|ƒS(s  Retry calling the Cloud decorated function using a jittered backoff strategy. More on this strategy here: https://www.awsarchitectureblog.com/2015/03/backoff.html Kwargs: retries (int): Number of times to retry a failed request before giving up default=10 delay (int): Initial delay between retries in seconds default=3 max_delay (int): maximum amount of time to wait between retries. default=60 R RR(R&R(R"R RRR((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pytjittered_backoff³s gš™™™™™ñ?c Cs,|jd|dd|d|ddd|ƒS(s Retry calling the Cloud decorated function using an exponential backoff. Compatibility for the original implementation of CloudRetry.backoff that did not provide configurable backoff strategies. Developers should use CloudRetry.exponential_backoff instead. Kwargs: tries (int): Number of times to try (not retry) before giving up default=10 delay (int or float): Initial delay between retries in seconds default=3 backoff (int or float): backoff multiplier e.g. value of 2 will double the delay each retry default=1.1 R iRRRRN(R'R(R"ttriesRRR((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyRÆs N( t__name__t __module__t__doc__RRt staticmethodRRt classmethodR&R'R(R(((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyRfs!( R,trandomt functoolsRRRR RtobjectR(((s>/usr/lib/python2.7/site-packages/ansible/module_utils/cloud.pyt)s