From c67f6b5478e1025346b8e74b479d81dfdfadd9f7 Mon Sep 17 00:00:00 2001 From: Bart Vanbrabant <bart.vanbrabant@inmanta.com> Date: Tue, 7 Mar 2017 14:31:55 +0100 Subject: [PATCH] Bugfix in handler --- module.yml | 2 +- plugins/__init__.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module.yml b/module.yml index ca57595..1fc26e7 100644 --- a/module.yml +++ b/module.yml @@ -1,5 +1,5 @@ author: Inmanta <code@inmanta.com> license: Apache 2.0 name: apt -version: 0.4.0 +version: 0.4.1 compiler_version: 2017.1 diff --git a/plugins/__init__.py b/plugins/__init__.py index 24fb243..7cd7100 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -103,8 +103,7 @@ class AptPackage(ResourceHandler): if result[2] > 0: raise Exception("An error occured while executing apt: " + result[1]) - def do_changes(self, ctx, resource): - changes = self.list_changes(ctx, resource) + def do_changes(self, ctx, resource, changes): changed = False env = {"LANG": "C", "DEBCONF_NONINTERACTIVE_SEEN": "true", "DEBIAN_FRONTEND": "noninteractive", -- GitLab