projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #23 from petevg/bug/instance-placement-bug
[osm/N2VC.git]
/
examples
/
controller.py
diff --git
a/examples/controller.py
b/examples/controller.py
index
e5a6280
..
3a492c4
100644
(file)
--- a/
examples/controller.py
+++ b/
examples/controller.py
@@
-5,6
+5,9
@@
This example:
2. Creates a new model.
3. Deploys an application on the new model.
2. Creates a new model.
3. Deploys an application on the new model.
+Note: 'cloudcred' format to add a model should be:
+cloudcred-<cloudname>_<user>_<credentialname>
+
"""
import asyncio
import logging
"""
import asyncio
import logging
@@
-24,7
+27,7
@@
async def run():
model = await controller.add_model(
'libjuju-test',
'cloud-aws',
model = await controller.add_model(
'libjuju-test',
'cloud-aws',
- 'cloudcred-aws_tvansteenburgh
_
external_aws-tim',
+ 'cloudcred-aws_tvansteenburgh
@
external_aws-tim',
)
await model.deploy(
'ubuntu-0',
)
await model.deploy(
'ubuntu-0',