fixed missing line continuation characters in shell.py
updated tests to use serverId 1234 instead of 12 to allow the tests to function on new image list
This commit is contained in:
parent
690f3d3866
commit
36f34d9983
@ -356,7 +356,7 @@ def do_image_list(cs, args):
|
||||
image_list = cs.images.list()
|
||||
for i in range(len(image_list)):
|
||||
if hasattr(image_list[i], 'serverId'):
|
||||
image_list[i].serverId = server_list[image_list[i].serverId] +
|
||||
image_list[i].serverId = server_list[image_list[i].serverId] + \
|
||||
' (' + str(image_list[i].serverId) + ')'
|
||||
utils.print_list(image_list, ['ID', 'Name', 'serverId','Status'])
|
||||
|
||||
|
@ -287,7 +287,7 @@ def do_image_list(cs, args):
|
||||
image_list = cs.images.list()
|
||||
for i in range(len(image_list)):
|
||||
if hasattr(image_list[i], 'serverId'):
|
||||
image_list[i].serverId = server_list[image_list[i].serverId] +
|
||||
image_list[i].serverId = server_list[image_list[i].serverId] + \
|
||||
' (' + str(image_list[i].serverId) + ')'
|
||||
utils.print_list(cs.images.list(), ['ID', 'Name', 'serverId', 'Status'])
|
||||
|
||||
|
@ -287,7 +287,7 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||
{
|
||||
"id": 743,
|
||||
"name": "My Server Backup",
|
||||
"serverId": 12,
|
||||
"serverId": 1234,
|
||||
"updated": "2010-10-10T12:00:00Z",
|
||||
"created": "2010-08-10T12:00:00Z",
|
||||
"status": "SAVING",
|
||||
|
@ -359,7 +359,7 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||
{
|
||||
"id": 743,
|
||||
"name": "My Server Backup",
|
||||
"serverId": 12,
|
||||
"serverId": 1234,
|
||||
"updated": "2010-10-10T12:00:00Z",
|
||||
"created": "2010-08-10T12:00:00Z",
|
||||
"status": "SAVING",
|
||||
|
Loading…
Reference in New Issue
Block a user