From 393ea1cd55ece489d99e53ad317bbc8bbb3261db Mon Sep 17 00:00:00 2001 From: Mark McKinstry Date: Fri, 28 Jun 2019 08:39:29 -0700 Subject: [PATCH] document problem when removing something from a dictionary (#58349) the problem is described at https://github.com/ansible/ansible/pull/49053#issuecomment-480427406 --- lib/ansible/modules/clustering/k8s/k8s.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/clustering/k8s/k8s.py b/lib/ansible/modules/clustering/k8s/k8s.py index 8d560b9bd27..d50b6f02c60 100644 --- a/lib/ansible/modules/clustering/k8s/k8s.py +++ b/lib/ansible/modules/clustering/k8s/k8s.py @@ -40,6 +40,12 @@ extends_documentation_fragment: - k8s_resource_options - k8s_auth_options +notes: + - If you are trying to remove an item from an associative array/dictionary, + for example a label or an annotation, you will need to explicitly set the + value of the item to be removed to `null`. Simply deleting the entry in the + dictionary will not remove it from openshift or kubernetes. + options: merge_type: description: