Fix command parsing on legacy api version

Change-Id: I43db7827a356650ab20e9ecaf0e7b7f41e771463
Closes-Bug: #1825067
(cherry picked from commit 422c9f25e3)
This commit is contained in:
Hongbin Lu 2019-04-16 23:47:43 +00:00
parent b5f1c47c8a
commit fef4d0657a
1 changed files with 2 additions and 0 deletions

View File

@ -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)