Ubuntu Pastebin

Paste from ubuntu at Wed, 25 Jan 2017 19:15:37 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
import functools
import os
import sys
import signal
import asyncio
import aiohttp
import logging

from juju.model import Model
from juju.unit import Unit



async def connect_to_model_current(model):
    await model.connect_current()


async def main(loop):
    model = Model(loop=loop)
    await connect_to_model_current(model)
    


logging.getLogger().setLevel(logging.INFO)
loop = asyncio.get_event_loop()
loop.set_debug(False)
loop.create_task(main(loop))
loop.run_forever()
Download as text