Skip to content

Commit

Permalink
Fixed basic config check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasyl Kaigorodov committed Jun 1, 2016
1 parent a3899c2 commit aa0ff05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aa0ff05

Please sign in to comment.