ubuntu_app = await model.deploy(
'ubuntu',
- service_name='ubuntu',
+ application_name='ubuntu',
series='trusty',
channel='stable',
)
))
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',