Implement support for more attributes and handle data type collisions when merging monitor group definitions

This commit is contained in:
2018-07-28 21:33:50 +01:00
parent edea19222d
commit 00985d29c5
4 changed files with 74 additions and 37 deletions

View File

@@ -1,4 +1,5 @@
import main
from yaml import dump
class Mod:
def __init__(self, register):
@@ -11,10 +12,7 @@ class Mod:
if not spl[1] in main.pool.keys():
failure("Name does not exist: %s" % spl[1])
return
optionMap = ["Viewing options for %s" % spl[1]]
for i in main.pool[spl[1]].keys():
optionMap.append(" %s: %s" % (i, main.pool[spl[1]][i]))
info("\n".join(optionMap))
info(dump({spl[1]: main.pool[spl[1]]}))
return
elif length == 3: