Fix bug in Model.destroy_unit()
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Thu, 5 Jan 2017 14:27:18 +0000 (09:27 -0500)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Thu, 5 Jan 2017 14:27:18 +0000 (09:27 -0500)
juju/model.py

index ecd764b..dafbf51 100644 (file)
@@ -952,7 +952,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):