Browse Source

Fix docs job for tripleo ansible

Remove relative imports.
Run docs job on changes in podman files.
Close-Bug: #1908723

Change-Id: I4b62f577be6b60733c1201f2143506d96d50f5a7
changes/56/767756/2
Sagi Shnaidman 4 months ago
committed by Harald Jensås
parent
commit
1dc9c0b95d
3 changed files with 13 additions and 3 deletions
  1. +4
    -1
      tripleo_ansible/ansible_plugins/module_utils/podman/podman_container_lib.py
  2. +7
    -2
      tripleo_ansible/ansible_plugins/modules/podman_container.py
  3. +2
    -0
      zuul.d/layout.yaml

+ 4
- 1
tripleo_ansible/ansible_plugins/module_utils/podman/podman_container_lib.py View File

@ -18,7 +18,10 @@ import json # noqa: F402
from distutils.version import LooseVersion # noqa: F402
from ansible.module_utils._text import to_bytes, to_native # noqa: F402
from ansible.module_utils.podman.common import lower_keys
try:
from ansible.module_utils.podman.common import lower_keys
except ImportError:
from tripleo_ansible.ansible_plugins.module_utils.podman.common import lower_keys # noqa: F402
__metaclass__ = type


+ 7
- 2
tripleo_ansible/ansible_plugins/modules/podman_container.py View File

@ -882,8 +882,13 @@ container:
"""
from ansible.module_utils.basic import AnsibleModule # noqa: F402
from ..module_utils.podman.podman_container_lib import PodmanManager # noqa: F402
from ..module_utils.podman.podman_container_lib import ARGUMENTS_SPEC_CONTAINER # noqa: F402
try:
from ansible.module_utils.podman.podman_container_lib import PodmanManager
from ansible.module_utils.podman.podman_container_lib import ARGUMENTS_SPEC_CONTAINER # noqa: F402
except ImportError:
from tripleo_ansible.ansible_plugins.module_utils.podman.podman_container_lib import PodmanManager # noqa: F402
from tripleo_ansible.ansible_plugins.module_utils.podman.podman_container_lib import ARGUMENTS_SPEC_CONTAINER # noqa: F402
def main():


+ 2
- 0
zuul.d/layout.yaml View File

@ -17,6 +17,8 @@
- ^molecule-requirements.txt
- ^README.rst
- ^requirements.txt
- ^tripleo_ansible/ansible_plugins/module_utils/podman/.*
- ^tripleo_ansible/ansible_plugins/modules/podman_.*
- tripleo-ci-centos-8-containers-multinode: &containers_multinode
vars: &multi_consumer_vars
consumer_job: true


Loading…
Cancel
Save