From 512628c68366642d8268b63ae96c0eb5aadfa39c Mon Sep 17 00:00:00 2001 From: Tim Van Steenburgh Date: Thu, 5 Jan 2017 09:27:18 -0500 Subject: [PATCH] Fix bug in Model.destroy_unit() --- juju/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juju/model.py b/juju/model.py index ecd764b..dafbf51 100644 --- a/juju/model.py +++ b/juju/model.py @@ -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): -- 2.25.1