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:
parent
e80cd8bcaf
commit
bc60f52db5
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ import json
|
|||
import os
|
||||
import uuid
|
||||
|
||||
try:
|
||||
from __main__ import cli
|
||||
except ImportError:
|
||||
cli = None
|
||||
|
||||
from ansible.constants import mk_boolean
|
||||
from ansible.module_utils.urls import open_url
|
||||
|
|
Loading…
Reference in a new issue