From 988ad20760846db6d6bc8f9ca51dac0c3ccba97d Mon Sep 17 00:00:00 2001 From: swistov Date: Mon, 6 May 2019 14:55:53 +0300 Subject: [PATCH] Update legacy.py Add get_disconnected_agents --- pyteamcity/legacy/legacy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyteamcity/legacy/legacy.py b/pyteamcity/legacy/legacy.py index 810c0cf..df8bdb9 100755 --- a/pyteamcity/legacy/legacy.py +++ b/pyteamcity/legacy/legacy.py @@ -462,6 +462,12 @@ def get_agents(self): Gets all agents in the TeamCity server pointed to by this instance of the Client. """ + + @GET('agents?locator=connected:false') + def get_disconnected_agents(self): + """ + Get all disconnected agents + """ @GET('agents/id:{agent_id}') def get_agent_by_agent_id(self, agent_id):