Fix indentation errors found by Pep8 1.4.6+
As a preparation in order to switch to a newer Pep8 version in the future, fix the indentation errors that are missed by Pep8 1.4.5 due to bugs. Change-Id: I30acf8fdc1ae7eadcbc1849409c989c2422f0f8f Closes-Bug: #1267994
This commit is contained in:
parent
22408ff5bc
commit
b3e5756ddb
@ -1278,8 +1278,8 @@ class TaskTests(test_utils.BaseTestCase):
|
|||||||
'input': {'import_from': 'file:///a.img',
|
'input': {'import_from': 'file:///a.img',
|
||||||
'import_from_format': 'qcow2',
|
'import_from_format': 'qcow2',
|
||||||
'image_properties': {
|
'image_properties': {
|
||||||
"name": "GreatStack 1.22",
|
"name": "GreatStack 1.22",
|
||||||
"tags": ["lamp", "custom"]
|
"tags": ["lamp", "custom"]
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1288,17 +1288,18 @@ class TaskTests(test_utils.BaseTestCase):
|
|||||||
'input': {'import_from': 'file:///b.img',
|
'input': {'import_from': 'file:///b.img',
|
||||||
'import_from_format': 'qcow2',
|
'import_from_format': 'qcow2',
|
||||||
'image_properties': {
|
'image_properties': {
|
||||||
"name": "GreatStack 1.23",
|
"name": "GreatStack 1.23",
|
||||||
"tags": ["lamp", "good"]
|
"tags": ["lamp", "good"]
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'owner': self.context.owner,
|
'owner': self.context.owner,
|
||||||
"type": "export",
|
"type": "export",
|
||||||
"input": {
|
"input": {
|
||||||
"export_uuid": "deadbeef-dead-dead-dead-beefbeefbeef",
|
"export_uuid": "deadbeef-dead-dead-dead-beefbeefbeef",
|
||||||
"export_to": "swift://cloud.foo/myaccount/mycontainer/path",
|
"export_to":
|
||||||
"export_format": "qcow2"
|
"swift://cloud.foo/myaccount/mycontainer/path",
|
||||||
|
"export_format": "qcow2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -288,9 +288,9 @@ class TestImages(functional.FunctionalTest):
|
|||||||
for i in range(3):
|
for i in range(3):
|
||||||
changes.append({'op': 'add', 'path': '/locations/-',
|
changes.append({'op': 'add', 'path': '/locations/-',
|
||||||
'value': {'url': 'file://{0}'.format(
|
'value': {'url': 'file://{0}'.format(
|
||||||
os.path.join(self.test_dir,
|
os.path.join(self.test_dir,
|
||||||
'fake_image_%i' % i)),
|
'fake_image_%i' % i)),
|
||||||
'metadata': {}},
|
'metadata': {}},
|
||||||
})
|
})
|
||||||
|
|
||||||
data = jsonutils.dumps(changes)
|
data = jsonutils.dumps(changes)
|
||||||
|
@ -106,12 +106,12 @@ class TestTasks(functional.FunctionalTest):
|
|||||||
'status': 'pending',
|
'status': 'pending',
|
||||||
'type': 'import',
|
'type': 'import',
|
||||||
'input': {
|
'input': {
|
||||||
"import_from": self.file_path,
|
"import_from": self.file_path,
|
||||||
"import_from_format": "qcow2",
|
"import_from_format": "qcow2",
|
||||||
"image_properties": {
|
"image_properties": {
|
||||||
'disk_format': 'vhd',
|
'disk_format': 'vhd',
|
||||||
'container_format': 'ovf'
|
'container_format': 'ovf'
|
||||||
}},
|
}},
|
||||||
'schema': '/v2/schemas/task',
|
'schema': '/v2/schemas/task',
|
||||||
}
|
}
|
||||||
for key, value in expected_task.items():
|
for key, value in expected_task.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user