Skip to content

Commit

Permalink
fixed NameError: name 'file' is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
codegik committed Apr 15, 2021
1 parent 9d1f511 commit 988bb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def choose_hypervisor(external_networking, arch):
if os.path.exists('/dev/kvm') and arch == host_arch:
return 'kvm'
if (os.path.exists('/proc/xen/capabilities')
and 'control_d' in file('/proc/xen/capabilities').read()
and 'control_d' in open('/proc/xen/capabilities', 'r').read()
and external_networking):
return 'xen'
return 'qemu'
Expand Down

0 comments on commit 988bb57

Please sign in to comment.