From 5e613051bcdff28389aadde952bd926588de4f4c Mon Sep 17 00:00:00 2001 From: Liam Young Date: Thu, 22 Mar 2018 10:48:29 +0000 Subject: [PATCH] Remove new unit_ips from mp, will add in as a seperate mp --- zaza/model.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/zaza/model.py b/zaza/model.py index 8f7c726..db10db5 100644 --- a/zaza/model.py +++ b/zaza/model.py @@ -19,22 +19,6 @@ async def deployed(filter=None): await model.disconnect() -async def _unit_ips(service_name): - # Create a Model instance. We need to connect our Model to a Juju api - # server before we can use it. - model = Model() - # Connect to the currently active Juju model - await model.connect_current() - app = model.applications[service_name] - ips = [] - for unit in app.units: - ips.append(unit.public_address) - await model.disconnect() - return ips - -def unit_ips(service_name): - return loop.run(_unit_ips(service_name)) - def main(): # Run the deploy coroutine in an asyncio event loop, using a helper # that abstracts loop creation and teardown.