summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--update.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.py b/update.py
index 5a19989..24f1a53 100644
--- a/update.py
+++ b/update.py
@@ -134,6 +134,15 @@ def _copy_file(path, dest, base):
_replace(dest, 'oslo', base)
+ # Restore the imports for modules that are part of the oslo
+ # namespace package. We can't just do something like 'oslo\..+'
+ # because there are default configuration settings like
+ # "oslo.sqlite" that we want to have changed to "nova.sqlite" by
+ # the above call.
+ for oslo_module in ['config']:
+ _replace(dest, base + '.' + oslo_module,
+ 'oslo.' + oslo_module)
+
_replace(dest,
'^( *)from openstack.common',
r'\1from ' + base + '.openstack.common')