Skip to content

Commit

Permalink
Merge "Don't hard code AUTH_ into the swift backup url"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 8, 2013
2 parents ce87f98 + 719ec5c commit 31789cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cinder/backup/services/swift.py
Expand Up @@ -51,7 +51,7 @@

swiftbackup_service_opts = [
cfg.StrOpt('backup_swift_url',
default='http://localhost:8080/v1/',
default='http://localhost:8080/v1/AUTH_',
help='The URL of the Swift endpoint'),
cfg.StrOpt('backup_swift_container',
default='volumebackups',
Expand Down Expand Up @@ -98,8 +98,8 @@ def _get_compressor(self, algorithm):

def __init__(self, context, db_driver=None):
self.context = context
self.swift_url = '%sAUTH_%s' % (FLAGS.backup_swift_url,
self.context.project_id)
self.swift_url = '%s%s' % (FLAGS.backup_swift_url,
self.context.project_id)
self.az = FLAGS.storage_availability_zone
self.data_block_size_bytes = FLAGS.backup_swift_object_size
self.swift_attempts = FLAGS.backup_swift_retry_attempts
Expand Down

0 comments on commit 31789cb

Please sign in to comment.