From 27464df53a6357ce9ca7b0b88bdcf1cdec394d12 Mon Sep 17 00:00:00 2001 From: Yuriy Novostavskiy Date: Sat, 1 Jun 2024 15:30:31 +0000 Subject: [PATCH] fix sanity/linter three hyphens as the berrinign of playbook in the example lead to "unparsable-with-libyaml: expected a single document in the stream - but found another document" error in yamllint, so three hyphens is removed in examples --- docs/kubernetes.core.kubectl_connection.rst | 3 --- plugins/connection/kubectl.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/docs/kubernetes.core.kubectl_connection.rst b/docs/kubernetes.core.kubectl_connection.rst index bb6cf7c3fb..6683b2320b 100644 --- a/docs/kubernetes.core.kubectl_connection.rst +++ b/docs/kubernetes.core.kubectl_connection.rst @@ -371,7 +371,6 @@ Examples .. code-block:: yaml # Run a command in a pod using local kubectl with kubconfig file ~/.kube/config - --- - hots: localhost gather_facts: no connection: kubernetes.core.kubectl @@ -401,7 +400,6 @@ Examples # ansible_kubectl_pod: my-bar-pod # ansible_kubectl_container: my-bar-container # ansible_kubectl_namespace: my-bar-namespace - --- - hosts: k8s gather_facts: no tasks: @@ -411,7 +409,6 @@ Examples command: echo "Hello, World!" # Complex example with dynamic inventory - --- - hosts: localhost gather_facts: no vars: diff --git a/plugins/connection/kubectl.py b/plugins/connection/kubectl.py index 6df29840b2..d0114251c1 100644 --- a/plugins/connection/kubectl.py +++ b/plugins/connection/kubectl.py @@ -184,7 +184,6 @@ EXAMPLES = r""" # Run a command in a pod using local kubectl with kubconfig file ~/.kube/config ---- - hots: localhost gather_facts: no connection: kubernetes.core.kubectl @@ -214,7 +213,6 @@ # ansible_kubectl_pod: my-bar-pod # ansible_kubectl_container: my-bar-container # ansible_kubectl_namespace: my-bar-namespace ---- - hosts: k8s gather_facts: no tasks: @@ -224,7 +222,6 @@ command: echo "Hello, World!" # Complex example with dynamic inventory ---- - hosts: localhost gather_facts: no vars: