From 3792395f2acb86535d80071bcedc45503420d706 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Tue, 9 Jun 2020 12:43:06 -0700 Subject: [PATCH] lfcli_base.py: class automatically gets a realm --- py-json/LANforge/lfcli_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-json/LANforge/lfcli_base.py b/py-json/LANforge/lfcli_base.py index 19d0360f..b0716127 100644 --- a/py-json/LANforge/lfcli_base.py +++ b/py-json/LANforge/lfcli_base.py @@ -6,7 +6,8 @@ from pprint import pprint import LANforge.LFUtils from LANforge.LFUtils import * - +import realm +from realm import Realm class LFCliBase: # do not use `super(LFCLiBase,self).__init__(self, host, port, _debugOn) @@ -21,6 +22,7 @@ class LFCliBase: self.haltOnError = _halt_on_error self.mgr_url = "http://%s:%s" % (self.lfjson_host, self.lfjson_port) self.test_results = [] + self.realm = Realm(_lfjson_host, _lfjson_port, debug=_debug) def clear_test_results(self): self.test_results.clear()