Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions docs/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Bug reports: https://github.com/juju/python-libjuju/issues
Documentation: https://pythonlibjuju.readthedocs.io/en/latest/


Requirements
------------

* Python 3.9/3.10


Design Notes
------------

Expand Down Expand Up @@ -46,10 +40,10 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.

#!/usr/bin/python3

import asyncio
import logging
import sys

from juju import jasyncio
from juju.model import Model


Expand All @@ -71,7 +65,7 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.

if '--wait' in sys.argv:
# optionally block until the application is ready
await model.wait_for_idle(status = 'active')
await model.wait_for_idle(status='active')

finally:
# Disconnect from the api server and cleanup.
Expand All @@ -87,7 +81,7 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.

# Run the deploy coroutine in an asyncio event loop, using a helper
# that abstracts loop creation and teardown.
jasyncio.run(deploy())
asyncio.run(deploy())


if __name__ == '__main__':
Expand Down