Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
[FIX] use no-xmlrpcs only if it is supported by the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rehn committed Aug 17, 2016
1 parent 8f85996 commit 8e18b31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runbot_build_instructions/runbot_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import openerp
from openerp import api
from openerp.osv import orm, fields
from openerp.addons.runbot.runbot import mkdirs
from openerp.addons.runbot.runbot import grep, mkdirs

_logger = logging.getLogger(__name__)
MAGIC_PID_RUN_NEXT_JOB = -2
Expand Down Expand Up @@ -164,11 +164,12 @@ def cmd(self, cr, uid, ids, context=None):
cmd = [
sys.executable,
server_path,
"--no-xmlrpcs",
"--xmlrpc-port=%d" % build.port,
"--db_user=%s" % openerp.tools.config['db_user'],
"--workers=0",
] + params
if grep(build.server("tools/config.py"), "no-xmlrpcs"):
cmd.append("--no-xmlrpcs")
return cmd, mods

@api.cr_uid_ids_context
Expand Down

0 comments on commit 8e18b31

Please sign in to comment.