mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add fake pymongo version attribute for the docs
This bypasses the following traceback when building the docs. File "/Users/shouse/src/salt/salt/salt/returners/mongo_future_return.py", line 72, in <module> version = '.'.join(version.split('.')[:2]) TypeError: 'Mock' object has no attribute '__getitem__'
This commit is contained in:
parent
6d8e9af297
commit
64b54e668a
1 changed files with 2 additions and 1 deletions
|
@ -123,8 +123,9 @@ MOCK_MODULES = [
|
|||
for mod_name in MOCK_MODULES:
|
||||
sys.modules[mod_name] = Mock()
|
||||
|
||||
# Define a fake version attribute for libcloud so docs build as supposed
|
||||
# Define a fake version attribute for the following libs.
|
||||
sys.modules['libcloud'].__version__ = '0.0.0'
|
||||
sys.modules['pymongo'].version = '0.0.0'
|
||||
|
||||
|
||||
# -- Add paths to PYTHONPATH ---------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue