From 63fb7526194f4d9e5dc66bd0c0eb8d8c05dbb708 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 12 May 2011 15:46:29 +0200
Subject: [PATCH] Use disk mode constants in iallocator documentation

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 doc/iallocator.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/doc/iallocator.rst b/doc/iallocator.rst
index 3fe14877a..582f00a2b 100644
--- a/doc/iallocator.rst
+++ b/doc/iallocator.rst
@@ -219,6 +219,11 @@ in the ``request`` dictionary:
     of instance disks and its template type, but Ganeti is better
     suited to compute it
 
+.. pyassert::
+
+   constants.DISK_ACCESS_SET == set([constants.DISK_RDONLY,
+     constants.DISK_RDWR])
+
 Allocation needs, in addition:
 
   disks
@@ -226,7 +231,8 @@ Allocation needs, in addition:
     instance (in the order they are exported to the hypervisor):
 
     mode
-      either ``r`` or ``w`` denoting if the disk is read-only or
+      either :pyeval:`constants.DISK_RDONLY` or
+      :pyeval:`constants.DISK_RDWR` denoting if the disk is read-only or
       writable
 
     size
-- 
GitLab