If deploying a single app, return the App instead of a list
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Tue, 1 Nov 2016 19:10:40 +0000 (15:10 -0400)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Tue, 1 Nov 2016 19:10:40 +0000 (15:10 -0400)
juju/model.py

index 8a49495..26611fc 100644 (file)
@@ -818,7 +818,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', service_name)
 
     def destroy(self):
         """Terminate all machines and resources for this model.