X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=examples%2Frelate.py;h=3aa9c5fa6524770fb4a93043c2cc73792f42fe6e;hb=01ab1abd39c3a8dda2dc99745e782e840c7f5b10;hp=8e42bab91bd0e8c2ab6a49acfa0b220cc397e24d;hpb=55ae2c120ce031f57ac210f3d7bd203db739f1e9;p=osm%2FN2VC.git diff --git a/examples/relate.py b/examples/relate.py index 8e42bab..3aa9c5f 100644 --- a/examples/relate.py +++ b/examples/relate.py @@ -48,7 +48,7 @@ async def run(): ubuntu_app = await model.deploy( 'ubuntu', - service_name='ubuntu', + application_name='ubuntu', series='trusty', channel='stable', ) @@ -75,10 +75,11 @@ async def run(): )) await model.deploy( 'nrpe', - service_name='nrpe', + application_name='nrpe', series='trusty', channel='stable', - num_units=1, + # subordinates must be deployed without units + num_units=0, ) my_relation = await model.add_relation( 'ubuntu',