Permalink
Browse files

Make parameter override config value.

Also remove a debug statement
  • Loading branch information...
oldpatricka committed Jan 17, 2013
1 parent f2e1eb7 commit 989843729fc03e3f145dc9299d59f95ab5ba5063
Showing with 4 additions and 2 deletions.
  1. +4 −2 dashi/bootstrap/__init__.py
@@ -110,9 +110,11 @@ def dashi_connect(topic, CFG=None, amqp_uri=None, sysname=None):
try:
_sysname = CFG.dashi.sysname
except AttributeError:
- _sysname = sysname
+ _sysname = None
- print "PDA: sysname -> %s" % _sysname
+ # argument overrides config value
+ if sysname is not None:
+ _sysname = sysname
return DashiConnection(topic, amqp_uri, dashi_exchange,
serializer=serializer, transport_options=transport_options, ssl=ssl,

0 comments on commit 9898437

Please sign in to comment.