From aa0ff0592a0b7db21a0610aa5f8dc0fea9a2312c Mon Sep 17 00:00:00 2001 From: Vasyl Kaigorodov Date: Wed, 1 Jun 2016 21:30:00 +0200 Subject: [PATCH] Fixed basic config check --- ansible.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible.py b/ansible.py index 40375cf..8703cb8 100644 --- a/ansible.py +++ b/ansible.py @@ -20,9 +20,9 @@ def check_configuration(self, configuration): """ # TODO: check_configuration: check supplied plugin configuration self.log.debug("Checking plugin configuration: {}".format(configuration)) - if not self.config['ANSIBLE_BASE'].endswith('/'): - self.config['ANSIBLE_BASE'] = \ - "".join([self.config['ANSIBLE_BASE'],'/']) + if not configuration['ANSIBLE_BASE'].endswith('/'): + configuration['ANSIBLE_BASE'] = \ + "".join([configuration['ANSIBLE_BASE'],'/']) super(Ansible, self).check_configuration() def callback_message(self, message):