Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clean up the read me file #1225

Merged
merged 1 commit into from
Nov 28, 2024
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
Loading