From fef4d0657a7460c935fe8aaea1d91d89eb37964c Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 16 Apr 2019 23:47:43 +0000 Subject: [PATCH] Fix command parsing on legacy api version Change-Id: I43db7827a356650ab20e9ecaf0e7b7f41e771463 Closes-Bug: #1825067 (cherry picked from commit 422c9f25e31f9a396f1cc86c99e31bd5c2a0ffbe) --- zunclient/common/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zunclient/common/utils.py b/zunclient/common/utils.py index c99b65f9..27d2fc69 100644 --- a/zunclient/common/utils.py +++ b/zunclient/common/utils.py @@ -203,6 +203,8 @@ def list_availability_zones(zones): def parse_command(command): output = [] if command: + if isinstance(command, six.string_types): + command = [command] for c in command: c = '"' + c + '"' output.append(c)