Merge pull request #43 from juju/feature/get-controller-cloud
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Thu, 5 Jan 2017 21:59:01 +0000 (16:59 -0500)
committerGitHub <noreply@github.com>
Thu, 5 Jan 2017 21:59:01 +0000 (16:59 -0500)
Add ability to get cloud for controller

juju/model.py

index c2b23d1..c6c01f6 100644 (file)
@@ -955,7 +955,7 @@ class Model(object):
             's' if len(unit_names) == 1 else '',
             ' '.join(unit_names))
 
-        return await app_facade.Destroy(self.name)
+        return await app_facade.DestroyUnits(list(unit_names))
     destroy_units = destroy_unit
 
     def get_backup(self, archive_id):