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']