From 9eac61f8e0065b00f8d621284ff4fff4aa0dc40c Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 11 Dec 2012 15:50:45 +0100 Subject: [PATCH] Fix ordering of entries in tools.ensure_dirs Commit ebd437a added two new entries to tools.ensure_dirs, but did so in the wrong order. Patch forthcoming to improve the unittest's error message. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Helga Velroyen <helgav@google.com> --- lib/tools/ensure_dirs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tools/ensure_dirs.py b/lib/tools/ensure_dirs.py index b50e37e7e..e4052604c 100644 --- a/lib/tools/ensure_dirs.py +++ b/lib/tools/ensure_dirs.py @@ -145,6 +145,8 @@ def GetPaths(): getent.noded_uid, getent.masterd_gid, False), (pathutils.NODED_CERT_FILE, FILE, pathutils.NODED_CERT_MODE, getent.masterd_uid, getent.masterd_gid, False), + (pathutils.WATCHER_PAUSEFILE, FILE, 0644, + getent.masterd_uid, getent.masterd_gid, False), ] ss = ssconf.SimpleStore() @@ -156,6 +158,8 @@ def GetPaths(): (pathutils.QUEUE_DIR, DIR, 0700, getent.masterd_uid, getent.masterd_gid), (pathutils.QUEUE_DIR, QUEUE_DIR, 0600, getent.masterd_uid, getent.masterd_gid), + (pathutils.JOB_QUEUE_DRAIN_FILE, FILE, 0644, + getent.masterd_uid, getent.masterd_gid, False), (pathutils.JOB_QUEUE_LOCK_FILE, FILE, 0600, getent.masterd_uid, getent.masterd_gid, False), (pathutils.JOB_QUEUE_SERIAL_FILE, FILE, 0600, @@ -164,10 +168,6 @@ def GetPaths(): getent.masterd_uid, getent.masterd_gid, False), (pathutils.JOB_QUEUE_ARCHIVE_DIR, DIR, 0700, getent.masterd_uid, getent.masterd_gid), - (pathutils.WATCHER_PAUSEFILE, FILE, 0644, - getent.masterd_uid, getent.masterd_gid, False), - (pathutils.JOB_QUEUE_DRAIN_FILE, FILE, 0644, - getent.masterd_uid, getent.masterd_gid, False), (rapi_dir, DIR, 0750, getent.rapi_uid, getent.masterd_gid), (pathutils.RAPI_USERS_FILE, FILE, 0640, getent.rapi_uid, getent.masterd_gid, False), -- GitLab