Commit 1fdfa87a authored by Iustin Pop's avatar Iustin Pop
Browse files

Two tiny fixed related to runtime functionality

Adds an assert and fixes a typo.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 2922d2c5
......@@ -621,6 +621,7 @@ def _VerifyDaemonUser(daemon_name):
constants.NODED: getents.noded_uid,
constants.CONFD: getents.confd_uid,
assert daemon_name in daemon_uids, "Invalid daemon %s" % daemon_name
return (daemon_uids[daemon_name] == running_uid, running_uid,
......@@ -171,7 +171,7 @@ def GetEnts(resolver=GetentResolver):
"""Singleton wrapper around resolver instance.
As this method is accessed by multiple threads at the same time
we need to take thread-safty carefully
we need to take thread-safety carefully.
# We need to use the global keyword here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment