[elbe-devel] [PATCH 1/4] elbe: config: added possibility to obtain soap port via environment

Kurt Kanzenbach kurt at linutronix.de
Mon Oct 30 09:47:25 CET 2017


Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 elbepack/config.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elbepack/config.py b/elbepack/config.py
index f4983fbe..6c8d38e1 100644
--- a/elbepack/config.py
+++ b/elbepack/config.py
@@ -1,6 +1,6 @@
 #
 # ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (C) 2014  Linutronix GmbH
+# Copyright (C) 2014,2017 Linutronix GmbH
 #
 # This file is part of ELBE.
 #
@@ -21,12 +21,16 @@ import os
 
 class Config(dict):
     def __init__(self):
+        self['soaphost'] = "localhost"
         self['soapport'] = "7587"
         self['pbuilder_jobs'] = "auto"
 
         if os.environ.has_key('ELBE_SOAPPORT'):
             self['soapport'] = os.environ['ELBE_SOAPPORT']
 
+        if os.environ.has_key('ELBE_SOAPHOST'):
+            self['soaphost'] = os.environ['ELBE_SOAPHOST']
+
         if os.environ.has_key('ELBE_PBUILDER_JOBS'):
             self['pbuilder_jobs'] = os.environ['ELBE_PBUILDER_JOBS']
 
-- 
2.11.0




More information about the elbe-devel mailing list