pep8 fixes

This commit is contained in:
Salvatore Orlando
2011-01-12 14:37:03 +00:00
parent 32eac05776
commit f3dba791b9
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ def stubout_get_this_vm_uuid(stubs):
def stubout_stream_disk(stubs):
def f(_1,_2):
def f(_1, _2):
pass
stubs.Set(vm_utils, '_stream_disk', f)

View File

@@ -317,7 +317,7 @@ class VMHelper(HelperBase):
vdi_size, False)
with_vdi_attached_here(session, vdi, False,
lambda dev:_stream_disk(dev,image_file))
lambda dev: _stream_disk(dev, image_file))
if (type == ImageType.KERNEL_RAMDISK):
#we need to invoke a plugin for copying VDI's
#content into proper path
@@ -652,7 +652,7 @@ def get_this_vm_ref(session):
return session.get_xenapi().VM.get_by_uuid(get_this_vm_uuid())
def _stream_disk(dev,image_file):
def _stream_disk(dev, image_file):
offset = 0
if type == ImageType.DISK:
offset = MBR_SIZE_BYTES