Skip to content

Commit

Permalink
Import PR chifflier#5
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasscherbaum committed Apr 14, 2017
1 parent 0654298 commit ffb91c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lxc_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@
from ansible.errors import AnsibleError
from ansible.plugins.connection import ConnectionBase
from ansible.utils.path import unfrackpath, makedirs_safe
from ansible.utils.unicode import to_bytes, to_unicode, to_str

from ansible.release import __version__ as ansible_version
from distutils.version import LooseVersion
if LooseVersion(ansible_version) >= LooseVersion('2.2.0.0'):
from ansible.module_utils._text import to_bytes, to_text as to_unicode, to_native as to_str
else:
from ansible.utils.unicode import to_bytes, to_unicode, to_str

try:
from __main__ import display
Expand Down

0 comments on commit ffb91c5

Please sign in to comment.