From 9593742301848f6a3e5d95efe7e52071d0f3b4d5 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Sat, 18 Nov 2006 18:16:40 +0000 Subject: [PATCH] pass cacert to plcapi init --- bootauth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootauth.py b/bootauth.py index a946db3..44f9a8f 100755 --- a/bootauth.py +++ b/bootauth.py @@ -9,7 +9,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: bootauth.py,v 1.1 2006/10/31 23:19:28 mlhuang Exp $ # import os, sys @@ -46,7 +46,7 @@ def main(): for (opt, optval) in opts: if opt == "-f" or opt == "--config" or opt == "--cfg" or opt == "--file": - config = optval + config = Config(optval) elif opt == "-n" or opt == "--node" or opt == "--nodeid" or opt == "--node-id" or opt == "--node_id": if os.path.exists(optval): node_id = file(optval).read().strip() @@ -68,10 +68,10 @@ def main(): usage() # Authenticate as the Boot Manager would and get a session key - plc = PLCAPI(config.plc_api_uri, (node_id, key)) + plc = PLCAPI(config.plc_api_uri, config.cacert, (node_id, key)) session = plc.BootGetNodeDetails()['session'] - plc = PLCAPI(config.plc_api_uri, session) + plc = PLCAPI(config.plc_api_uri, config.cacert, session) assert session == plc.GetSession() print session -- 2.43.0