Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

deregister service id and check id #175

@chinakevinguo

Description

@chinakevinguo

Is this code really like this? when change 'get' to 'put' ,it works...

            def deregister(self, service_id):
                """
                Used to remove a service from the local agent. The agent will
                take care of deregistering the service with the Catalog. If
                there is an associated check, that is also deregistered.
                """
                # return self.agent.http.get(
                #     CB.bool(), '/v1/agent/service/deregister/%s' % service_id)

                return self.agent.http.put(
                    CB.bool(), '/v1/agent/service/deregister/%s' % service_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions