Revision 81ae485c
b/lib/constants.py | ||
---|---|---|
1550 | 1550 |
|
1551 | 1551 |
OPCODE_REASON = _constants.OPCODE_REASON |
1552 | 1552 |
|
1553 |
# The source reasons for the execution of an OpCode |
|
1554 |
OPCODE_REASON_SRC_CLIENT = "gnt:client" |
|
1555 |
OPCODE_REASON_SRC_NODED = "gnt:daemon:noded" |
|
1556 |
OPCODE_REASON_SRC_OPCODE = "gnt:opcode" |
|
1557 |
OPCODE_REASON_SRC_RLIB2 = "gnt:library:rlib2" |
|
1558 |
OPCODE_REASON_SRC_USER = "gnt:user" |
|
1559 |
|
|
1560 |
OPCODE_REASON_SOURCES = compat.UniqueFrozenset([ |
|
1561 |
OPCODE_REASON_SRC_CLIENT, |
|
1562 |
OPCODE_REASON_SRC_NODED, |
|
1563 |
OPCODE_REASON_SRC_OPCODE, |
|
1564 |
OPCODE_REASON_SRC_RLIB2, |
|
1565 |
OPCODE_REASON_SRC_USER, |
|
1566 |
]) |
|
1553 |
OPCODE_REASON_SRC_CLIENT = _constants.OPCODE_REASON_SRC_CLIENT |
|
1554 |
OPCODE_REASON_SRC_NODED = _constants.OPCODE_REASON_SRC_NODED |
|
1555 |
OPCODE_REASON_SRC_OPCODE = _constants.OPCODE_REASON_SRC_OPCODE |
|
1556 |
OPCODE_REASON_SRC_RLIB2 = _constants.OPCODE_REASON_SRC_RLIB2 |
|
1557 |
OPCODE_REASON_SRC_USER = _constants.OPCODE_REASON_SRC_USER |
|
1558 |
OPCODE_REASON_SOURCES = _constants.OPCODE_REASON_SOURCES |
|
1567 | 1559 |
|
1568 | 1560 |
DISKSTATS_FILE = _constants.DISKSTATS_FILE |
1569 | 1561 |
|
b/src/Ganeti/HsConstants.hs | ||
---|---|---|
3747 | 3747 |
ndsStartNodeDaemon :: String |
3748 | 3748 |
ndsStartNodeDaemon = "start_node_daemon" |
3749 | 3749 |
|
3750 |
-- * The source reasons for the execution of an OpCode |
|
3751 |
|
|
3752 |
opcodeReasonSrcClient :: String |
|
3753 |
opcodeReasonSrcClient = "gnt:client" |
|
3754 |
|
|
3755 |
opcodeReasonSrcNoded :: String |
|
3756 |
opcodeReasonSrcNoded = "gnt:daemon:noded" |
|
3757 |
|
|
3758 |
opcodeReasonSrcOpcode :: String |
|
3759 |
opcodeReasonSrcOpcode = "gnt:opcode" |
|
3760 |
|
|
3761 |
opcodeReasonSrcRlib2 :: String |
|
3762 |
opcodeReasonSrcRlib2 = "gnt:library:rlib2" |
|
3763 |
|
|
3764 |
opcodeReasonSrcUser :: String |
|
3765 |
opcodeReasonSrcUser = "gnt:user" |
|
3766 |
|
|
3767 |
opcodeReasonSources :: FrozenSet String |
|
3768 |
opcodeReasonSources = |
|
3769 |
ConstantUtils.mkSet [opcodeReasonSrcClient, |
|
3770 |
opcodeReasonSrcNoded, |
|
3771 |
opcodeReasonSrcOpcode, |
|
3772 |
opcodeReasonSrcRlib2, |
|
3773 |
opcodeReasonSrcUser] |
|
3774 |
|
|
3750 | 3775 |
-- | Path generating random UUID |
3751 | 3776 |
randomUuidFile :: String |
3752 | 3777 |
randomUuidFile = ConstantUtils.randomUuidFile |
Also available in: Unified diff