Merge "Fix command parsing on legacy api version" into stable/rocky

This commit is contained in:
Zuul
2019-04-20 22:27:11 +00:00
committed by Gerrit Code Review

View File

@@ -18,6 +18,7 @@ import json
import os
from oslo_utils import netutils
import six
from six.moves.urllib import parse
from six.moves.urllib import request
from zunclient.common.apiclient import exceptions as apiexec
@@ -199,6 +200,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)