Revision e37f47d3 lib/tools/ensure_dirs.py
b/lib/tools/ensure_dirs.py | ||
---|---|---|
102 | 102 |
|
103 | 103 |
if pathtype in (DIR, QUEUE_DIR): |
104 | 104 |
# No additional parameters |
105 |
assert len(path[5:]) == 0
|
|
105 |
assert len(path) == 5
|
|
106 | 106 |
if pathtype == DIR: |
107 | 107 |
utils.MakeDirWithPerm(pathname, mode, uid, gid) |
108 | 108 |
elif pathtype == QUEUE_DIR: |
... | ... | |
127 | 127 |
cleaner_log_dir = os.path.join(pathutils.LOG_DIR, "cleaner") |
128 | 128 |
master_cleaner_log_dir = os.path.join(pathutils.LOG_DIR, "master-cleaner") |
129 | 129 |
|
130 |
# A note on the ordering: The parent directory (type C{DIR}) must always be |
|
131 |
# listed before files (type C{FILE}) in that directory. Once the directory is |
|
132 |
# set, only files directly in that directory can be listed. |
|
130 | 133 |
paths = [ |
131 | 134 |
(pathutils.DATA_DIR, DIR, 0755, getent.masterd_uid, getent.masterd_gid), |
132 | 135 |
(pathutils.CLUSTER_DOMAIN_SECRET_FILE, FILE, 0640, |
Also available in: Unified diff