Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create django_models.py #54912

Open
wants to merge 9 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@Ali-aqrabawi
Copy link

commented Apr 5, 2019

add django_models inventory plugin source

SUMMARY

new inventory plugin which pull inventory using Django models from,
this plugin will Django to manage Ansible inventory dynamically.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

django_models

ADDITIONAL INFORMATION

no changes, new inventory plugin that pull inventory from database using Django models.

Create django_models.py
add django_models inventory plugin source
@ansibot

This comment has been minimized.

Copy link
Contributor

commented Apr 5, 2019

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.8 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test docs-build [explain] failed with 15 errors:

docs/docsite/rst/dev_guide/developing_inventory.rst:14:0: undefined-label: undefined label: script_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:35:0: undefined-label: undefined label: host_list_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:37:0: undefined-label: undefined label: yaml_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:39:0: undefined-label: undefined label: constructed_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:41:0: undefined-label: undefined label: ini_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:43:0: undefined-label: undefined label: virtualbox_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:45:0: undefined-label: undefined label: script_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:109:0: undefined-label: undefined label: virtualbox_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:111:0: undefined-label: undefined label: host_list_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/dev_guide/developing_inventory.rst:290:0: undefined-label: undefined label: auto_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/plugins/inventory.rst:146:0: toc-tree-glob-pattern-no-match: toctree glob pattern 'inventory/*' didn't match any documents
docs/docsite/rst/porting_guides/porting_guide_2.8.rst:356:0: undefined-label: undefined label: auto_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/porting_guides/porting_guide_2.8.rst:356:0: undefined-label: undefined label: ini_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/porting_guides/porting_guide_2.8.rst:356:0: undefined-label: undefined label: yaml_inventory (if the link has no caption the label must precede a section header)
docs/docsite/rst/scenario_guides/guide_scaleway.rst:176:0: undefined-label: undefined label: scaleway_inventory (if the link has no caption the label must precede a section header)

The test ansible-test sanity --test boilerplate [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing: from __future__ import (absolute_import, division, print_function)

The test ansible-test sanity --test pep8 [explain] failed with 3 errors:

lib/ansible/plugins/inventory/django_models.py:23:1: W293 blank line contains whitespace
lib/ansible/plugins/inventory/django_models.py:25:1: W293 blank line contains whitespace
lib/ansible/plugins/inventory/django_models.py:72:1: W293 blank line contains whitespace

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:26:9: error DOCUMENTATION: syntax error: expected <block end>, but found '?'

click here for bot help

Update django_models.py
fix Documentation format

@Ali-aqrabawi Ali-aqrabawi reopened this Apr 5, 2019

Ali-aqrabawi added some commits Apr 5, 2019

Update django_models.py
shippable errors fixes
Update django_models.py
pep8 fixes
Update django_models.py
fix check style
Update django_models.py
remove trailing whitespaces
Update django_models.py
fixed E306 pep8
@ansibot

This comment has been minimized.

Copy link
Contributor

commented Apr 5, 2019

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected string or Unicode, AnsibleMapping found

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected string or Unicode, AnsibleMapping found

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected str instance, AnsibleMapping found

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected str instance, AnsibleMapping found

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected str instance, AnsibleMapping found

The test ansible-test sanity --test ansible-doc --python 3.8 [explain] failed with 1 error:

lib/ansible/plugins/inventory/django_models.py:0:0: missing documentation (or could not parse documentation): sequence item 2: expected str instance, AnsibleMapping found

click here for bot help

@ansibot ansibot added the ci_verified label Apr 5, 2019

@ansibot ansibot added the stale_ci label Apr 13, 2019

@ansibot ansibot added the needs_repo label Apr 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.