~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to swift/common/middleware/domain_remap.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-28 09:40:30 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130128094030-aetz57x2qz9ye2d4
Tags: 1.7.6-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
                # account prefix is not in config list. bail.
103
103
                return self.app(env, start_response)
104
104
            prefix_index = self.reseller_prefixes_lower.index(
105
 
                                                    account_reseller_prefix)
 
105
                account_reseller_prefix)
106
106
            real_prefix = self.reseller_prefixes[prefix_index]
107
107
            if not account.startswith(real_prefix):
108
108
                account_suffix = account[len(real_prefix):]