def extend(image, size):
 virt_size = get_disk_size(image)
 if (virt_size >= size):
  return
 utils.execute('qemu-img', 'resize', image, size)
 resize2fs(image)

def extend ( image , size ) : virt_size = get_disk_size ( image ) if ( virt_size >= size ) : return utils . execute ( 'qemu-img' , 'resize' , image , size ) resize2fs ( image )
add interface to klass__implements__ if not already implemented in .