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:
parent
adb44bbd2e
commit
1b8d618019
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user