From: Ansgar Burchardt Date: Mon, 17 Sep 2012 13:21:03 +0000 (+0200) Subject: dak/admin.py: add subcommand to print configuration value X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66012218feeb5a9a4228890f44a9a27dcaafeca;p=dak dak/admin.py: add subcommand to print configuration value --- diff --git a/dak/admin.py b/dak/admin.py index 798aa3b7..8ba79797 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -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: