From 1675d7a5eaa8c44b3f330d5a5179fccb83587f3f Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Sun, 20 Aug 2017 23:36:55 +0200 Subject: [PATCH] Fix DigitalOceanState.destroy() Method did not return a value, which caused the resource to not be removed although destroying was successful. --- nixops/backends/digital_ocean.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixops/backends/digital_ocean.py b/nixops/backends/digital_ocean.py index f54017ee4..e883045ee 100644 --- a/nixops/backends/digital_ocean.py +++ b/nixops/backends/digital_ocean.py @@ -124,6 +124,8 @@ def destroy(self, wipe=False): self.public_ipv4 = None self.droplet_id = None + return True + def create(self, defn, check, allow_reboot, allow_recreate): ssh_key = self.depl.active_resources.get('ssh-key') if ssh_key is None: