1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

util.is_machine_name(name) to check if working for machine

This commit is contained in:
Игорь Чудов 2019-12-04 22:11:20 +04:00
parent adb44bbd2e
commit 1b8d618019
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -64,6 +64,9 @@ def get_machine_name():
'''
return socket.gethostname().split('.', 1)[0].upper() + "$"
def is_machine_name(name):
return name == get_machine_name()
def machine_kinit():
'''
Perform kinit with machine credentials