aztk/utils/helpers.py
def create_pool_if_not_exist(pool, batch_client):
    """
    Creates the specified pool if it doesn't already exist
    :param batch_client: The batch client to use.
    :type batch_client: `batchserviceclient.BatchServiceClient`
    :param pool: The pool to create.
    :type pool: `batchserviceclient.models.PoolAddParameter`
    """
    try:
        batch_client.pool.add(pool)
    except batch_models.BatchErrorException as e:
        if e.error.code == "PoolExists":
            raise error.AztkError(
                "A cluster with the same id already exists. Use a different id or delete the existing cluster")
        else:
            raise
    return True

    Creates the specified pool if it doesn't already exist
    :param batch_client: The batch client to use.
    :type batch_client: `batchserviceclient.BatchServiceClient`
    :param pool: The pool to create.
    :type pool: `batchserviceclient.models.PoolAddParameter`
    
Creates the specified pool if it doesn't already exist
Creates the specified pool if it doesn ' t already exist
def create_pool_if_not_exist(pool, batch_client):
    try:
        batch_client.pool.add(pool)
    except batch_models.BatchErrorException as e:
        if e.error.code == "PoolExists":
            raise error.AztkError(
                "A cluster with the same id already exists. Use a different id or delete the existing cluster")
        else:
            raise
    return True
def create_pool_if_not_exist ( pool , batch_client ) : try : batch_client . pool . add ( pool ) except batch_models . BatchErrorException as e : if e . error . code == "PoolExists" : raise error . AztkError ( "A cluster with the same id already exists. Use a different id or delete the existing cluster" ) else : raise return True
Creates the specified pool if it doesn't already exist
Creates the specified pool if it doesn ' t already exist
"""
    Creates the specified pool if it doesn't already exist
    :param batch_client: The batch client to use.
    :type batch_client: `batchserviceclient.BatchServiceClient`
    :param pool: The pool to create.
    :type pool: `batchserviceclient.models.PoolAddParameter`
    """
pool
The pool to create.
The pool to create .
batch_client
The batch client to use.
The batch client to use .