Skip to content

Cannot initialize new BatchServiceClient  #21

@krzysztofstepien-tomtom

Description

Hi

I have problems with creating new jobs in Azure via Python library

Once new BatchClient is created, and job is added to it, i am getting the following error:
keyError: batchUrl

It seems that there is an issue in azure/batch/_configuration.py file

    def __init__(
            self, credentials, batch_url):

        if credentials is None:
            raise ValueError("Parameter 'credentials' must not be None.")
        if batch_url is None:
            raise ValueError("Parameter 'batch_url' must not be None.")
        base_url = '{batchUrl}'

The initialization of base_url seems incorrect, there should be
base_url = f'{batch_url}' instead in my opinion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions