I have done similar things to enable my plugins for v1 AND v2. Essentially:

from ansible import __version__ as ANSIBLE_VERSION
    if ANSIBLE_VERSION.startswith('2'):
    else:


More recently, I am encouraging everyone to upgrade to v2 and trying to 
remove the v1 support esp as some things that I'm doing now simply aren't 
possible in v1.

My concern, however, is that all of this is going to break with v3 or maybe 
even v2.2, resulting in some plugins requiring more code to deal with the 
version than actually do the thing it's actually trying to do. 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/da20192d-136b-4d92-97b8-19c58f748b8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to