src/droute53.py
def waitForState(instanceObj, state):
    """
    Wait until the instance is in a desired state.  This function
    doesn't initiate any change, so if not used carefully it may wait
    forever.

    @param insanceObj: ec2.Instance -- Instance to be manipulated.
    @param state: list of int -- List of acceptable states.

    @returns: None

    """
    cnt = 0
    while instanceObj.state_code not in state:
        time.sleep(1)
        instanceObj.update()
        cnt +=1
        if cnt % 10 == 0:
            print('still waiting for operation on "{}" to complete'.format(instanceObj.id))

    Wait until the instance is in a desired state.  This function
    doesn't initiate any change, so if not used carefully it may wait
    forever.

    @param insanceObj: ec2.Instance -- Instance to be manipulated.
    @param state: list of int -- List of acceptable states.

    @returns: None

    
Wait until the instance is in a desired state.  This function
doesn't initiate any change, so if not used carefully it may wait
forever.
Wait until the instance is in a desired state . This function doesn ' t initiate any change so if not used carefully it may wait forever .
def waitForState(instanceObj, state):
    cnt = 0
    while instanceObj.state_code not in state:
        time.sleep(1)
        instanceObj.update()
        cnt +=1
        if cnt % 10 == 0:
            print('still waiting for operation on "{}" to complete'.format(instanceObj.id))
def waitForState ( instanceObj , state ) : cnt = 0 while instanceObj . state_code not in state : time . sleep ( 1 ) instanceObj . update ( ) cnt += 1 if cnt % 10 == 0 : print ( 'still waiting for operation on "{}" to complete' . format ( instanceObj . id ) )
Wait until the instance is in a desired state.
Wait until the instance is in a desired state .
"""
    Wait until the instance is in a desired state.  This function
    doesn't initiate any change, so if not used carefully it may wait
    forever.

    @param insanceObj: ec2.Instance -- Instance to be manipulated.
    @param state: list of int -- List of acceptable states.

    @returns: None

    """
instanceObj
state
list of int -- List of acceptable states.
list of int -- List of acceptable states .
insanceObj
ec2.Instance -- Instance to be manipulated.
ec2 . Instance -- Instance to be manipulated .
returns
None