Revision cffbbae7 lib/backend.py
b/lib/backend.py | ||
---|---|---|
63 | 63 |
from ganeti import mcpu |
64 | 64 |
from ganeti import compat |
65 | 65 |
from ganeti import pathutils |
66 |
from ganeti import vcluster |
|
66 | 67 |
|
67 | 68 |
|
68 | 69 |
_BOOT_ID_PATH = "/proc/sys/kernel/random/boot_id" |
... | ... | |
2072 | 2073 |
@rtype: None |
2073 | 2074 |
|
2074 | 2075 |
""" |
2076 |
file_name = vcluster.LocalizeVirtualPath(file_name) |
|
2077 |
|
|
2075 | 2078 |
if not os.path.isabs(file_name): |
2076 | 2079 |
_Fail("Filename passed to UploadFile is not absolute: '%s'", file_name) |
2077 | 2080 |
|
... | ... | |
2821 | 2824 |
@return: the success of the operation |
2822 | 2825 |
|
2823 | 2826 |
""" |
2827 |
file_name = vcluster.LocalizeVirtualPath(file_name) |
|
2828 |
|
|
2824 | 2829 |
_EnsureJobQueueFile(file_name) |
2825 | 2830 |
getents = runtime.GetEnts() |
2826 | 2831 |
|
... | ... | |
2842 | 2847 |
@return: the success of the operation and payload |
2843 | 2848 |
|
2844 | 2849 |
""" |
2850 |
old = vcluster.LocalizeVirtualPath(old) |
|
2851 |
new = vcluster.LocalizeVirtualPath(new) |
|
2852 |
|
|
2845 | 2853 |
_EnsureJobQueueFile(old) |
2846 | 2854 |
_EnsureJobQueueFile(new) |
2847 | 2855 |
|
Also available in: Unified diff