Skip to content

Commit

Permalink
remove redis arg and use defaults for host and port
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Server committed Apr 24, 2012
1 parent 077518e commit 33dcb3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mock_s3.py
Expand Up @@ -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))
Expand Down

0 comments on commit 33dcb3e

Please sign in to comment.