s/service_name/application_name/g
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Fri, 9 Dec 2016 17:26:21 +0000 (12:26 -0500)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Fri, 9 Dec 2016 17:26:21 +0000 (12:26 -0500)
docs/index.rst
examples/config.py
examples/controller.py
examples/deploy.py
examples/future.py
examples/relate.py
examples/unitrun.py
juju/model.py

index 93479ce..a38e3a4 100644 (file)
@@ -70,7 +70,7 @@ and in the documentation.
       # stable channel of the Charm Store.
       ubuntu_app = await model.deploy(
           'ubuntu-0',
-          service_name='ubuntu',
+          application_name='ubuntu',
           series='xenial',
           channel='stable',
       )
index eda9891..579308b 100644 (file)
@@ -22,7 +22,7 @@ async def run():
 
     ubuntu_app = await model.deploy(
         'mysql',
-        service_name='mysql',
+        application_name='mysql',
         series='trusty',
         channel='stable',
         config={
index 7bd4b03..7e7f0da 100644 (file)
@@ -24,7 +24,7 @@ async def run():
     )
     await model.deploy(
         'ubuntu-0',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
index d7ca29a..7887d24 100644 (file)
@@ -51,7 +51,7 @@ async def run():
 
     await model.deploy(
         'ubuntu-0',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
index dd3d04b..d0dd463 100644 (file)
@@ -16,7 +16,7 @@ async def run():
     goal_state = Model.from_yaml('bundle-like-thing')
     ubuntu_app = await model.deploy(
         'ubuntu-0',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
@@ -24,7 +24,7 @@ async def run():
 
     await model.deploy(
         'nrpe-11',
-        service_name='nrpe',
+        application_name='nrpe',
         series='trusty',
         channel='stable',
         num_units=0,
index 8e42bab..01cee37 100644 (file)
@@ -48,7 +48,7 @@ async def run():
 
     ubuntu_app = await model.deploy(
         'ubuntu',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
@@ -75,7 +75,7 @@ async def run():
     ))
     await model.deploy(
         'nrpe',
-        service_name='nrpe',
+        application_name='nrpe',
         series='trusty',
         channel='stable',
         num_units=1,
index a5b294b..0436259 100644 (file)
@@ -38,7 +38,7 @@ async def run():
 
     await model.deploy(
         'ubuntu-0',
-        service_name='ubuntu',
+        application_name='ubuntu',
         series='trusty',
         channel='stable',
     )
index 7464e2c..e2d3d52 100644 (file)
@@ -809,14 +809,14 @@ class Model(object):
         pass
 
     async def deploy(
-            self, entity_url, service_name=None, bind=None, budget=None,
+            self, entity_url, application_name=None, bind=None, budget=None,
             channel=None, config=None, constraints=None, force=False,
             num_units=1, plan=None, resources=None, series=None, storage=None,
             to=None):
         """Deploy a new service or bundle.
 
         :param str entity_url: Charm or bundle url
-        :param str service_name: Name to give the service
+        :param str application_name: Name to give the service
         :param dict bind: <charm endpoint>:<network space> pairs
         :param dict budget: <budget name>:<limit> pairs
         :param str channel: Charm store channel from which to retrieve
@@ -842,7 +842,7 @@ class Model(object):
 
         TODO::
 
-            - service_name is required; fill this in automatically if not
+            - application_name is required; fill this in automatically if not
               provided by caller
             - series is required; how do we pick a default?
 
@@ -896,7 +896,7 @@ class Model(object):
 
             await client_facade.AddCharm(channel, entity_id)
             app = client.ApplicationDeploy(
-                application=service_name,
+                application=application_name,
                 channel=channel,
                 charm_url=entity_id,
                 config=config,
@@ -910,7 +910,7 @@ class Model(object):
             )
 
             await app_facade.Deploy([app])
-            return await self._wait_for_new('application', service_name)
+            return await self._wait_for_new('application', application_name)
 
     def destroy(self):
         """Terminate all machines and resources for this model.