Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove redis arg and use defaults for host and port

  • Loading branch information...
commit 33dcb3eef4715e48811ad859dd734a12e5dfb2fa 1 parent 077518e
Joe Server authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 mock_s3.py
View
5 mock_s3.py
@@ -150,15 +150,12 @@ def set_template_env(self, env):
parser.add_argument('--root', dest='root', action='store',
default='%s/s3store' % os.environ['HOME'],
help='Defaults to $HOME/s3store.')
- parser.add_argument('--redis', dest='redis', action='store',
- default='localhost',
- help='The hostname of redis server.')
parser.add_argument('--pull-from-aws', dest='pull_from_aws', action='store_true',
default=False,
help='Pull non-existent keys from aws.')
args = parser.parse_args()
- redis_client = StrictRedis(host=args.redis, port=6379, db='mock-s3')
+ redis_client = StrictRedis()
server = ThreadedHTTPServer((args.hostname, args.port), S3Handler)
server.set_file_store(FileStore(args.root, redis_client))
Please sign in to comment.
Something went wrong with that request. Please try again.