Revision d7754dad lib/constants.py
b/lib/constants.py | ||
---|---|---|
445 | 445 |
DISK_TRANSFER_CONNECT_TIMEOUT = _constants.DISK_TRANSFER_CONNECT_TIMEOUT |
446 | 446 |
DISK_SEPARATOR = _constants.DISK_SEPARATOR |
447 | 447 |
IP_COMMAND_PATH = _constants.IP_COMMAND_PATH |
448 |
JOB_IDS_KEY = _constants.JOB_IDS_KEY |
|
449 |
|
|
450 |
RUNPARTS_SKIP = _constants.RUNPARTS_SKIP |
|
451 |
RUNPARTS_RUN = _constants.RUNPARTS_RUN |
|
452 |
RUNPARTS_ERR = _constants.RUNPARTS_ERR |
|
453 |
RUNPARTS_STATUS = _constants.RUNPARTS_STATUS |
|
454 |
|
|
455 |
RPC_ENCODING_NONE = _constants.RPC_ENCODING_NONE |
|
456 |
RPC_ENCODING_ZLIB_BASE64 = _constants.RPC_ENCODING_ZLIB_BASE64 |
|
448 | 457 |
|
449 | 458 |
RPC_TMO_URGENT = _constants.RPC_TMO_URGENT |
450 | 459 |
RPC_TMO_FAST = _constants.RPC_TMO_FAST |
... | ... | |
454 | 463 |
RPC_TMO_1DAY = _constants.RPC_TMO_1DAY |
455 | 464 |
RPC_CONNECT_TIMEOUT = _constants.RPC_CONNECT_TIMEOUT |
456 | 465 |
|
457 |
#: Key for job IDs in opcode result |
|
458 |
JOB_IDS_KEY = "jobs" |
|
459 |
|
|
460 |
# runparts results |
|
461 |
(RUNPARTS_SKIP, |
|
462 |
RUNPARTS_RUN, |
|
463 |
RUNPARTS_ERR) = range(3) |
|
464 |
|
|
465 |
RUNPARTS_STATUS = compat.UniqueFrozenset([ |
|
466 |
RUNPARTS_SKIP, |
|
467 |
RUNPARTS_RUN, |
|
468 |
RUNPARTS_ERR, |
|
469 |
]) |
|
470 |
|
|
471 |
# RPC constants |
|
472 |
(RPC_ENCODING_NONE, |
|
473 |
RPC_ENCODING_ZLIB_BASE64) = range(2) |
|
474 |
|
|
475 | 466 |
# os related constants |
476 | 467 |
OS_SCRIPT_CREATE = "create" |
477 | 468 |
OS_SCRIPT_IMPORT = "import" |
Also available in: Unified diff