Skip to content

Commit

Permalink
Fix # 410
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 19, 2017
1 parent 34edeb9 commit 0ee49c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion IM/ansible_utils/ansible_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@
else:
from ansible.cli import CLI
from ansible.parsing.dataloader import DataLoader
from ansible.vars import VariableManager
try:
# for Ansible version 2.4.0 or higher
from ansible.vars.manager import VariableManager
except:
# for Ansible version 2.3.2 or lower
from ansible.vars import VariableManager
import ansible.inventory

from .ansible_executor_v2 import IMPlaybookExecutor
Expand Down

0 comments on commit 0ee49c2

Please sign in to comment.