Revision 82b22e19 lib/backend.py
b/lib/backend.py | ||
---|---|---|
59 | 59 |
from ganeti import ssconf |
60 | 60 |
from ganeti import serializer |
61 | 61 |
from ganeti import netutils |
62 |
from ganeti import runtime |
|
62 | 63 |
|
63 | 64 |
|
64 | 65 |
_BOOT_ID_PATH = "/proc/sys/kernel/random/boot_id" |
... | ... | |
2403 | 2404 |
|
2404 | 2405 |
""" |
2405 | 2406 |
_EnsureJobQueueFile(file_name) |
2407 |
getents = runtime.GetEnts() |
|
2406 | 2408 |
|
2407 | 2409 |
# Write and replace the file atomically |
2408 |
utils.WriteFile(file_name, data=_Decompress(content)) |
|
2410 |
utils.WriteFile(file_name, data=_Decompress(content), uid=getents.masterd_uid, |
|
2411 |
gid=getents.masterd_gid) |
|
2409 | 2412 |
|
2410 | 2413 |
|
2411 | 2414 |
def JobQueueRename(old, new): |
Also available in: Unified diff