File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,12 +8,6 @@ Bug reports: https://github.com/juju/python-libjuju/issues
88Documentation: https://pythonlibjuju.readthedocs.io/en/latest/
99
1010
11- Requirements
12- ------------
13-
14- * Python 3.9/3.10
15-
16-
1711Design Notes
1812------------
1913
@@ -46,10 +40,10 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.
4640
4741 # !/usr/bin/python3
4842
43+ import asyncio
4944 import logging
5045 import sys
5146
52- from juju import jasyncio
5347 from juju.model import Model
5448
5549
@@ -71,7 +65,7 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.
7165
7266 if ' --wait' in sys.argv:
7367 # optionally block until the application is ready
74- await model.wait_for_idle(status = ' active' )
68+ await model.wait_for_idle(status = ' active' )
7569
7670 finally :
7771 # Disconnect from the api server and cleanup.
@@ -87,7 +81,7 @@ Note : Pylibjuju requires an already bootstrapped Juju controller to connect to.
8781
8882 # Run the deploy coroutine in an asyncio event loop, using a helper
8983 # that abstracts loop creation and teardown.
90- jasyncio .run(deploy())
84+ asyncio .run(deploy())
9185
9286
9387 if __name__ == ' __main__' :
You can’t perform that action at this time.
0 commit comments