Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Fix paths to properly use FQCN where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Feb 17, 2020
1 parent 4a29ce0 commit 0863a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions molecule/default/tasks/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
restartPolicy: Always

- name: retrieve the log by providing the deployment
community.kubernetes.k8s_log:
k8s_log:
api_version: apps/v1
kind: Deployment
namespace: k8s-log
Expand All @@ -46,7 +46,7 @@
with_items: '{{ deployment_log.log_lines }}'

- name: retrieve the log with a label selector
community.kubernetes.k8s_log:
k8s_log:
namespace: k8s-log
label_selectors:
- 'app=hello-world'
Expand All @@ -68,7 +68,7 @@
register: k8s_log_pods

- name: retrieve the log directly with the pod name
community.kubernetes.k8s_log:
k8s_log:
namespace: k8s-log
name: '{{ k8s_log_pods.resources.0.metadata.name }}'
register: pod_log
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/k8s_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@
'''


from ansible.module_utils.k8s.common import KubernetesAnsibleModule, AUTH_ARG_SPEC
import copy
from ansible_collections.community.kubernetes.plugins.module_utils.common import KubernetesAnsibleModule
from ansible_collections.community.kubernetes.plugins.module_utils.common import AUTH_ARG_SPEC


class KubernetesLogModule(KubernetesAnsibleModule):
Expand Down

0 comments on commit 0863a44

Please sign in to comment.