Permalink
Browse files

remove redis arg and use defaults for host and port

  • Loading branch information...
1 parent 077518e commit 33dcb3eef4715e48811ad859dd734a12e5dfb2fa Joe Server committed Apr 24, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 mock_s3.py
View
@@ -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))

0 comments on commit 33dcb3e

Please sign in to comment.