From 99dcbcc32fdd011948f5ecfcf0c3ee767014d29f Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 30 Jan 2020 16:42:22 -0600 Subject: [PATCH] Issue #2: Ignore return-syntax-error for now. --- plugins/modules/k8s.py | 3 --- plugins/modules/k8s_scale.py | 3 --- plugins/modules/k8s_service.py | 3 --- tests/sanity/ignore-2.10.txt | 3 +++ 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/modules/k8s.py b/plugins/modules/k8s.py index 123b2bab..91646da2 100644 --- a/plugins/modules/k8s.py +++ b/plugins/modules/k8s.py @@ -257,17 +257,14 @@ result: description: Standard object metadata. Includes name, namespace, annotations, labels, etc. returned: success type: complex - contains: Object metadata spec: description: Specific attributes of the object. Will vary based on the I(api_version) and I(kind). returned: success type: complex - contains: Specific object attributes status: description: Current status details for the object. returned: success type: complex - contains: Status details items: description: Returned only when multiple yaml documents are passed to src or resource_definition returned: when resource_definition or src contains list of objects diff --git a/plugins/modules/k8s_scale.py b/plugins/modules/k8s_scale.py index 6b10953e..81dca908 100644 --- a/plugins/modules/k8s_scale.py +++ b/plugins/modules/k8s_scale.py @@ -108,17 +108,14 @@ result: description: Standard object metadata. Includes name, namespace, annotations, labels, etc. returned: success type: complex - contains: Object metadata spec: description: Specific attributes of the object. Will vary based on the I(api_version) and I(kind). returned: success type: complex - contains: Specific object attributes status: description: Current status details for the object. returned: success type: complex - contains: Status details ''' from ansible_collections.community.kubernetes.plugins.module_utils.scale import KubernetesAnsibleScaleModule diff --git a/plugins/modules/k8s_service.py b/plugins/modules/k8s_service.py index 8bea40f4..dc580019 100644 --- a/plugins/modules/k8s_service.py +++ b/plugins/modules/k8s_service.py @@ -154,17 +154,14 @@ result: description: Standard object metadata. Includes name, namespace, annotations, labels, etc. returned: success type: complex - contains: Object metadata spec: description: Specific attributes of the object. Will vary based on the I(api_version) and I(kind). returned: success type: complex - contains: Specific object attributes status: description: Current status details for the object. returned: success type: complex - contains: Status details ''' import copy diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt index bbd327f7..0fa8c1c3 100644 --- a/tests/sanity/ignore-2.10.txt +++ b/tests/sanity/ignore-2.10.txt @@ -1,2 +1,5 @@ plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc +plugins/modules/k8s.py validate-modules:return-syntax-error plugins/modules/k8s_scale.py validate-modules:parameter-type-not-in-doc +plugins/modules/k8s_scale.py validate-modules:return-syntax-error +plugins/modules/k8s_service.py validate-modules:return-syntax-error