Remove obsolete password from qemu.hook
This commit is contained in:
parent
5739ae3560
commit
f1a0b9fa22
13
qemu.hook
13
qemu.hook
|
@ -146,19 +146,6 @@ def cleanup_files():
|
|||
pass
|
||||
|
||||
|
||||
def get_buildbot_password():
|
||||
"""
|
||||
Retrieve buildbot password for guest
|
||||
"""
|
||||
fname = '/etc/libvirt/buildbot.pwd'
|
||||
with open(fname) as file_handle:
|
||||
content = [line.rstrip('\n') for line in file_handle]
|
||||
try:
|
||||
return content[0]
|
||||
except (TypeError, IndexError):
|
||||
return "password"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
# pylint: disable=unbalanced-tuple-unpacking
|
||||
|
|
Loading…
Reference in New Issue
Block a user