Use disk mode constants in iallocator documentation
authorMichael Hanselmann <hansmi@google.com>
Thu, 12 May 2011 13:46:29 +0000 (15:46 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 12 May 2011 16:38:11 +0000 (18:38 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

doc/iallocator.rst

index 3fe1487..582f00a 100644 (file)
@@ -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