]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add "_" builtin method for config generation
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Thu, 23 May 2013 09:33:30 +0000 (13:33 +0400)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 24 May 2013 09:29:54 +0000 (13:29 +0400)
extract_opts.py fails to generate config without this

bug 1183731

Change-Id: Icf3b45d5d7262607336f5d5e7a0a14b0dee9741d

tools/conf/extract_opts.py

index db9e8d7a7d89aba283832a9ddc76bef6a8024851..c34f2eefe277ba972d2ed8fa8185032643e00d8e 100644 (file)
@@ -18,6 +18,8 @@
 
 """Extracts OpenStack config option info from module(s)."""
 
+import __builtin__
+setattr(__builtin__, '_', lambda x: x)
 import os
 import re
 import socket