diff --git a/mock_s3.py b/mock_s3.py index 64a1e7d..a041a6a 100755 --- a/mock_s3.py +++ b/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))