Skip to content

parameter field_name not required for tc.build_type_api.change_requirement_setting #54

@MNSEhub

Description

@MNSEhub

Hi,

As seen here: build_type_api.change_requirement_setting
this function requires an parameter field_name, which must not be used at all for the function. All values for it other than "" (empty str) leads to an error, as the parameter is currently mandatory by validation, but must be always "" to build the correct url for the underlying TC RestAPI call.

To use this function at it's current state, it needs to be called as (using dohq-teamcity Types below):

bt: BuildType
ar: AgentRequirement

api_response = tc.build_type_api.change_requirement_setting(bt, ar, "", body=ar)

The parameter should be removed.

Thanks and Cheers
--- mnse

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