@@ -4,7 +4,7 @@ A Juju controller provides websocket endpoints for each of its
44models. In order to do anything useful with a model, the juju lib must
55connect to one of these endpoints. There are several ways to do this.
66
7- For api docs, see py :class: `juju.model.Model `.
7+ For api docs, see :class: `juju.model.Model `.
88
99
1010Connecting to the Current Model
@@ -92,8 +92,8 @@ require the Juju CLI client to be installed.
9292 Creating and Destroying a Model
9393-------------------------------
9494Example of creating a new model and then destroying it. See
95- py :method: `juju.controller.Controller.add_model ` and
96- py :method: `juju.controller.Controller.destroy_model ` for more info.
95+ :method: `juju.controller.Controller.add_model ` and
96+ :method: `juju.controller.Controller.destroy_model ` for more info.
9797
9898.. code :: python
9999
@@ -119,8 +119,8 @@ py:method:`juju.controller.Controller.destroy_model` for more info.
119119 Adding Machines and Containers
120120------------------------------
121121To add a machine or container, connect to a model and then call its
122- py :method: `~juju.model.Model.add_machine ` method. A
123- py :class: `~juju.machine.Machine ` instance is returned. The machine id
122+ :method: `~juju.model.Model.add_machine ` method. A
123+ :class: `~juju.machine.Machine ` instance is returned. The machine id
124124can be used to deploy a charm to a specific machine or container.
125125
126126.. code :: python
@@ -177,7 +177,7 @@ Reacting to Changes in a Model
177177------------------------------
178178To watch for and respond to changes in a model, register an observer with the
179179model. The easiest way to do this is by creating a
180- py :class: `juju.model.ModelObserver ` subclass.
180+ :class: `juju.model.ModelObserver ` subclass.
181181
182182.. code :: python
183183
@@ -268,7 +268,7 @@ to the entity and type of change that you wish to handle.
268268 # specific handler method is not defined.
269269
270270
271- Any py :class: `juju.model.ModelEntity ` object can be observed directly by
271+ Any :class: `juju.model.ModelEntity ` object can be observed directly by
272272registering callbacks on the object itself.
273273
274274.. code :: python
0 commit comments