Skip to content

Commit

Permalink
fix sanity/linter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yurnov committed Jun 1, 2024
1 parent 7e85312 commit 27464df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions docs/kubernetes.core.kubectl_connection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -411,7 +409,6 @@ Examples
command: echo "Hello, World!"
# Complex example with dynamic inventory
---
- hosts: localhost
gather_facts: no
vars:
Expand Down
3 changes: 0 additions & 3 deletions plugins/connection/kubectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -224,7 +222,6 @@
command: echo "Hello, World!"
# Complex example with dynamic inventory
---
- hosts: localhost
gather_facts: no
vars:
Expand Down

0 comments on commit 27464df

Please sign in to comment.