projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/service_name/application_name/g
[osm/N2VC.git]
/
docs
/
narrative
/
create-model.rst
diff --git
a/docs/narrative/create-model.rst
b/docs/narrative/create-model.rst
index
c650f91
..
b0cdbe7
100644
(file)
--- a/
docs/narrative/create-model.rst
+++ b/
docs/narrative/create-model.rst
@@
-1,6
+1,8
@@
Creating and Destroying a Model
===============================
Creating and Destroying a Model
===============================
-Example of creating a new model and then destroying it.
+Example of creating a new model and then destroying it. See
+:meth:`juju.controller.Controller.add_model` and
+:meth:`juju.controller.Controller.destroy_model` for more info.
.. code:: python
.. code:: python
@@
-12,8
+14,6
@@
Example of creating a new model and then destroying it.
# Create our new model
model = await controller.add_model(
'mymodel', # name of your new model
# Create our new model
model = await controller.add_model(
'mymodel', # name of your new model
- 'aws', # name of the cloud to use
- 'aws-tim', # name of the credential to use
)
# Do stuff with our model...
)
# Do stuff with our model...