summaryrefslogtreecommitdiffstats
path: root/update.py
diff options
context:
space:
mode:
authorAndrew Bogott <abogott@wikimedia.org>2012-06-27 15:41:53 -0500
committerAndrew Bogott <abogott@wikimedia.org>2012-06-27 15:47:20 -0500
commite7b5854f73b6cf4c3080ea00208a4b0226bcbb52 (patch)
tree0d9329ea8e269a8cd49d180b0e3d47aee0b4b11e /update.py
parent71cddc514ac194e2332817673ef76c099dc158cc (diff)
downloadoslo-e7b5854f73b6cf4c3080ea00208a4b0226bcbb52.tar.gz
oslo-e7b5854f73b6cf4c3080ea00208a4b0226bcbb52.tar.xz
oslo-e7b5854f73b6cf4c3080ea00208a4b0226bcbb52.zip
Update strings like 'openstack.common.notifier.driver'.
I was running into trouble with driver names that were generically named in common but need to point to specific objects within nova. Change-Id: Ie75761c73a855b067b1bcec651a1bb998deba9f4
Diffstat (limited to 'update.py')
-rw-r--r--update.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/update.py b/update.py
index 509f5ab..7bb0d10 100644
--- a/update.py
+++ b/update.py
@@ -151,6 +151,14 @@ def _copy_file(path, base, dest_dir):
'^from openstack.common',
'from ' + base + '.openstack.common')
+ _replace(dest,
+ '\'openstack\.common',
+ '\'' + base + '.openstack.common')
+
+ _replace(dest,
+ '\"openstack\.common',
+ '\"' + base + '.openstack.common')
+
def _copy_module(mod, base, dest_dir):
print ("Copying openstack.common.%s under the %s module in %s" %