~fabricematrat/charmworld/redirect-charm

« back to all changes in this revision

Viewing changes to migrations/versions/002_Escape_dots_dollar_signs_percent_signs_in_mongo_keys.py

  • Committer: Aaron Bentley
  • Date: 2013-06-04 15:36:45 UTC
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: aaron@canonical.com-20130604153645-enl2s2rbpzmwgl4k
Migrations take index_client, implement 005.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
from charmworld.utils import quote_yaml
7
7
 
8
 
def upgrade(db):
 
8
def upgrade(db, index_client):
9
9
    """Iterate all charm data and replace all dictionary keys containing
10
10
    a '.', '$' or '%' with an escaped variant.
11
11
    """