3. Deploys a charm and prints its config and constraints
"""
-import asyncio
import logging
from juju.model import Model
async def main():
model = Model()
- await model.connect_current()
- await model.reset(force=True)
+ # connect to current model with current user, per Juju CLI
+ await model.connect()
ubuntu_app = await model.deploy(
'mysql',
await model.disconnect()
-
+
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
ws_logger = logging.getLogger('websockets.protocol')