jhaals / ansible-vault

ansible lookup plugin for secrets stored in Vault(by HashiCorp)
BSD 3-Clause "New" or "Revised" License
347 stars 65 forks source link

fix ansible 1.9.x compatability code #19

Closed richfromm closed 8 years ago

richfromm commented 8 years ago

Previously, setting self.basedir would fail if runner was None Since evaluating self.runner.basedir would fail with: AttributeError: 'NoneType' object has no attribute 'basedir'

In addition to providing support for this being None, also respect the setting of self.basedir directly from basedir, as a higher precedence. Previously any passed arg for basedir was ignored.