From 19ea01e17ebb2e5024c14f6ce451cb337d52b77a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 4 Jan 2020 11:14:55 -0500 Subject: [PATCH] Don't strip down single-element lists This is causing problems, so don't do it. --- client-api/api_lib/pvcapi_provisioner.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client-api/api_lib/pvcapi_provisioner.py b/client-api/api_lib/pvcapi_provisioner.py index 72b0d7bf..e6066023 100755 --- a/client-api/api_lib/pvcapi_provisioner.py +++ b/client-api/api_lib/pvcapi_provisioner.py @@ -127,10 +127,6 @@ def list_template(limit, table, is_fuzzy=True): close_database(conn, cur) - # Strip outer list if only one element - if isinstance(data, list) and len(data) == 1: - data = data[0] - return data def list_template_system(limit, is_fuzzy=True):