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 <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
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,
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
......
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