1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

avoid exceptiosn when not being called by CLI

This commit is contained in:
Brian Coca 2016-03-17 07:19:21 -07:00
parent e80cd8bcaf
commit bc60f52db5

View file

@ -23,7 +23,10 @@ import json
import os
import uuid
from __main__ import cli
try:
from __main__ import cli
except ImportError:
cli = None
from ansible.constants import mk_boolean
from ansible.module_utils.urls import open_url