def _get_windows_password(ec2_client,
                          instance_id,
                          private_key_path):
    password_data = ec2_client.get_password_data(instance_id=instance_id)
    if not password_data:
        return None

    return passwd.get_windows_passwd(private_key_path, password_data)
def _get_windows_password(ec2_client, instance_id, private_key_path,
                          start_retry_interval):
    password_data = ec2_client.get_password_data(instance_id=instance_id)
    if not password_data:
        return ctx.operation.retry(
            message='Waiting for server to post generated password',
            retry_after=start_retry_interval)

    return passwd.get_windows_passwd(private_key_path, password_data)
def _get_windows_password(ec2_client,
                          instance_id,
                          private_key_path,
                          start_retry_interval):
    password_data = ec2_client.get_password_data(instance_id=instance_id)
    if not password_data:
        return ctx.operation.retry(
            message='Waiting for server to post generated password',
            retry_after=start_retry_interval)

    return passwd.get_windows_passwd(private_key_path, password_data)
Exemple #4
0
def _get_windows_password(ec2_client, instance_id, private_key_path):
    password_data = ec2_client.get_password_data(instance_id=instance_id)
    if not password_data:
        return None

    return passwd.get_windows_passwd(private_key_path, password_data)