Fix command parsing on legacy api version
Change-Id: I43db7827a356650ab20e9ecaf0e7b7f41e771463
Closes-Bug: #1825067
(cherry picked from commit 422c9f25e3
)
This commit is contained in:
@@ -203,6 +203,8 @@ def list_availability_zones(zones):
|
|||||||
def parse_command(command):
|
def parse_command(command):
|
||||||
output = []
|
output = []
|
||||||
if command:
|
if command:
|
||||||
|
if isinstance(command, six.string_types):
|
||||||
|
command = [command]
|
||||||
for c in command:
|
for c in command:
|
||||||
c = '"' + c + '"'
|
c = '"' + c + '"'
|
||||||
output.append(c)
|
output.append(c)
|
||||||
|
Reference in New Issue
Block a user