Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
640eecc4
Commit
640eecc4
authored
Jan 15, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept a mongo uri instead of a host,port and password.
parent
b736c5fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
util/vpc-tools/abbey.py
+4
-9
No files found.
util/vpc-tools/abbey.py
View file @
640eecc4
...
...
@@ -29,7 +29,7 @@ class MongoConnection:
def
__init__
(
self
):
try
:
mongo
=
MongoClient
(
host
=
args
.
mongo_
host
,
port
=
args
.
mongo_port
)
mongo
=
MongoClient
(
host
=
args
.
mongo_
uri
)
except
ConnectionFailure
:
print
"Unable to connect to the mongo database specified"
sys
.
exit
(
1
)
...
...
@@ -166,15 +166,10 @@ def parse_args():
default
=
5
,
help
=
"How long to delay message display from sqs "
"to ensure ordering"
)
parser
.
add_argument
(
"--mongo-
host
"
,
required
=
False
,
parser
.
add_argument
(
"--mongo-
uri
"
,
required
=
False
,
default
=
None
,
help
=
"Mongo host that contains the AMI collection"
)
parser
.
add_argument
(
"--mongo-pass"
,
required
=
False
,
default
=
None
,
help
=
"Mongo password"
)
parser
.
add_argument
(
"--mongo-port"
,
required
=
False
,
default
=
27017
,
help
=
"Mongo port"
)
help
=
"Mongo uri for the host that contains"
"the AMI collection"
)
parser
.
add_argument
(
"--mongo-db"
,
required
=
False
,
default
=
"test"
,
help
=
"Mongo database"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment