[Merge] lp:~yolanda.robla/keystone/icehouse_fix-distribution into lp:~ubuntu-server-dev/keystone/icehouse
Scott Moser
smoser at ubuntu.com
Mon Dec 9 16:16:23 UTC 2013
thats why I said on module load.
and *once* find it.
surely there is some appropriate place to put code that will be executed once on server initialization and not every request.
ie, i was suggesting in wsgi.py to have:
try:
X_DISTRIBUTION = subprocess.check_output(['lsb-release', '-sc'])
except Exception as e:
X_DISTRIBUTION = None
then, use that later:
if X_DISTRIBUTION is not None:
headers.append(('X-Distribution', X_DISTRIBUTION))
--
https://code.launchpad.net/~yolanda.robla/keystone/icehouse_fix-distribution/+merge/198275
Your team Ubuntu Server Developers is requested to review the proposed merge of lp:~yolanda.robla/keystone/icehouse_fix-distribution into lp:~ubuntu-server-dev/keystone/icehouse.
More information about the Ubuntu-reviews
mailing list