Module: check_mk
Branch: master
Commit: e65ad76a5296bf23309b927f0fb36da121d786d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e65ad76a5296bf…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 10 16:34:20 2014 +0100
werk list now support the selection of a certain version
---
werk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/werk b/werk
index bf28bc8..f71463a 100755
--- a/werk
+++ b/werk
@@ -202,7 +202,6 @@ def load_werk(werkid):
"state" : "unknown",
"title" : "unknown",
"component" : "general",
- "targetversion" : "future",
}
f = file(str(werkid))
@@ -218,6 +217,7 @@ def load_werk(werkid):
description += line
werk["description"] = description
+ versions.add(werk["version"])
return werk
def save_werk(werk):
@@ -354,6 +354,7 @@ def main_list(args, format):
( "component", components ),
( "level", levels ),
( "class", classes ),
+ ( "version", versions ),
]:
for v in values:
if type(v) == tuple:
@@ -797,6 +798,7 @@ def main_fetch_ids(args):
# |_| |_| |_|\__,_|_|_| |_|
#
+versions = set([])
goto_werksdir()
load_config()
load_werks()