flake8: follow all F rules

This commit is contained in:
Yuming Zhu 2020-02-25 20:58:28 +08:00
parent 7b4c7aa3d1
commit 642508ccf6
10 changed files with 37 additions and 41 deletions

View file

@ -995,7 +995,7 @@ class VMTaskManager(TaskManager):
task_info = self.session.getTaskInfo(task['id'], request=True)
vm_name = task_info['request'][0]
try:
vm = self.libvirt_conn.lookupByName(vm_name)
self.libvirt_conn.lookupByName(vm_name)
except libvirt.libvirtError:
# if this builder does not have the requested VM,
# we can't handle the task