]> err.no Git - dak/commitdiff
dak/admin.py: add subcommand to print configuration value
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 17 Sep 2012 13:21:03 +0000 (15:21 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 17 Sep 2012 14:21:19 +0000 (16:21 +0200)
dak/admin.py

index 798aa3b7b8948a8652760111d5e196e20b505de8..8ba79797bdaf6345e6d5b1c3bd0206c8c3313c08 100755 (executable)
@@ -556,6 +556,8 @@ def show_config(command):
             print "PGPORT=%s" % cnf["DB::Port"]
             e.append('PGPORT')
         print "export " + " ".join(e)
+    elif mode == 'get':
+        print cnf.get(args[2])
     else:
         session = DBConn().session()
         try: