congress/congress/common
Eric K 7c6d7c5ad2 Use only strings in paste.deploy.loadapp global_conf
1. encode the flags as json
2. pass node_id, bus_id rather than DseNode instance.
   Create DseNode in harness not eventlet_server.

Rationale: global_conf not meant to take non-strings.
Somehow got away with it in python2, but fails in python3.

When dict (and DseNode) passed through global_conf,
paste.deploy.loadapp adds them to configparser defaults,
causing errors when configparser calls string methods on them.

File "/usr/lib/python3.4/configparser.py",
    line 390, in _interpolate_some
    p = rest.find("%")
AttributeError:
    Error in file congress/tests/etc/api-paste.ini:
    'dict' object has no attribute 'find'

Change-Id: I549b9281e72512bb804a7d6f07bf6482e9485ae4
2016-09-15 18:00:11 +00:00
..
__init__.py Integrate openstack/common logging and cfg with congress 2014-07-08 14:10:11 -07:00
config.py Merge "Restore the DSE opt group" 2016-09-02 06:44:11 +00:00
eventlet_server.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
policy.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
wsgi.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00