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:
Jason Straw 2011-11-03 23:46:08 -05:00
parent 690f3d3866
commit 36f34d9983
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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",

View File

@ -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",