[elbe-devel] [PATCH 3/4] config: added possibility to obtain user and pass via environment
Kurt Kanzenbach
kurt at linutronix.de
Mon Oct 30 09:47:27 CET 2017
Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
elbepack/config.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/elbepack/config.py b/elbepack/config.py
index 6c8d38e1..39ce2a61 100644
--- a/elbepack/config.py
+++ b/elbepack/config.py
@@ -23,6 +23,8 @@ class Config(dict):
def __init__(self):
self['soaphost'] = "localhost"
self['soapport'] = "7587"
+ self['elbeuser'] = "root"
+ self['elbepass'] = "foo"
self['pbuilder_jobs'] = "auto"
if os.environ.has_key('ELBE_SOAPPORT'):
@@ -31,6 +33,12 @@ class Config(dict):
if os.environ.has_key('ELBE_SOAPHOST'):
self['soaphost'] = os.environ['ELBE_SOAPHOST']
+ if os.environ.has_key('ELBE_USER'):
+ self['elbeuser'] = os.environ['ELBE_USER']
+
+ if os.environ.has_key('ELBE_PASS'):
+ self['elbepass'] = os.environ['ELBE_PASS']
+
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