From 27f820ad8c29b1a4f3283ddceb6ca392703bdc2f Mon Sep 17 00:00:00 2001 From: Sambit Mishra Date: Thu, 11 Jan 2018 16:56:43 -0800 Subject: [PATCH] Send labels as a key,value pair list --- source/code/plugin/in_kube_podinventory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/code/plugin/in_kube_podinventory.rb b/source/code/plugin/in_kube_podinventory.rb index 63abd53bb..8fd4a7d5f 100644 --- a/source/code/plugin/in_kube_podinventory.rb +++ b/source/code/plugin/in_kube_podinventory.rb @@ -58,7 +58,7 @@ def enumerate(podList = nil) record = {} record['Name'] = items['metadata']['name'] record['PodUid'] = items['metadata']['uid'] - record['PodLabel'] = items['metadata']['labels'] + record['PodLabel'] = [items['metadata']['labels']] record['Namespace'] = items['metadata']['namespace'] record['PodCreationTimeStamp'] = items['metadata']['creationTimestamp'] record['PodStartTime'] = items['status']['startTime']