~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to nova/virt/vmwareapi/vmware_images.py

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-08-10 14:53:53 UTC
  • mfrom: (1355.2.24 pylint-fixes)
  • Revision ID: tarmac-20110810145353-rmc0lkjirgunxe08
These fixes are the result of trolling the pylint violations here

https://jenkins.openstack.org/job/nova-pylint-errors/violations/

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
 
35
35
def start_transfer(read_file_handle, data_size, write_file_handle=None,
36
 
                   glance_client=None, image_id=None, image_meta={}):
 
36
                   glance_client=None, image_id=None, image_meta=None):
37
37
    """Start the data transfer from the reader to the writer.
38
38
    Reader writes to the pipe and the writer reads from the pipe. This means
39
39
    that the total transfer time boils down to the slower of the read/write
40
40
    and not the addition of the two times."""
 
41
 
 
42
    if not image_meta:
 
43
        image_meta = {}
 
44
 
41
45
    # The pipe that acts as an intermediate store of data for reader to write
42
46
    # to and writer to grab from.
43
47
    thread_safe_pipe = io_util.ThreadSafePipe(QUEUE_BUFFER_SIZE, data_size)