[elbe-devel] [PATCH 2/4] elbe: commands: use soaphost specified by configuration
Kurt Kanzenbach
kurt at linutronix.de
Mon Oct 30 09:47:26 CET 2017
Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
elbepack/commands/control.py | 4 ++--
elbepack/commands/prjrepo.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/commands/control.py b/elbepack/commands/control.py
index c1e8a409..1149d3ac 100755
--- a/elbepack/commands/control.py
+++ b/elbepack/commands/control.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#
# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (C) 2014 Linutronix GmbH
+# Copyright (C) 2014,2017 Linutronix GmbH
#
# This file is part of ELBE.
#
@@ -37,7 +37,7 @@ from elbepack.elbexml import ValidationMode
def run_command (argv):
oparser = OptionParser (usage="usage: elbe control [options] <command>")
- oparser.add_option ("--host", dest="host", default="localhost",
+ oparser.add_option ("--host", dest="host", default=cfg['soaphost'],
help="Ip or hostname of elbe-daemon.")
oparser.add_option ("--port", dest="port", default=cfg['soapport'],
diff --git a/elbepack/commands/prjrepo.py b/elbepack/commands/prjrepo.py
index f91a2672..dc99f076 100755
--- a/elbepack/commands/prjrepo.py
+++ b/elbepack/commands/prjrepo.py
@@ -35,7 +35,7 @@ from elbepack.config import cfg
def run_command(argv):
oparser = OptionParser(usage="usage: elbe prjrepo [options] <command>")
- oparser.add_option("--host", dest="host", default="localhost",
+ oparser.add_option("--host", dest="host", default=cfg['soaphost'],
help="Ip or hostname of elbe-daemon.")
oparser.add_option("--port", dest="port", default=cfg['soapport'],
--
2.11.0
More information about the elbe-devel
mailing list