Commit 63fb7526 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Use disk mode constants in iallocator documentation

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent fdbe29ee
......@@ -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,
Allocation needs, in addition:
......@@ -226,7 +231,8 @@ Allocation needs, in addition:
instance (in the order they are exported to the hypervisor):
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment