Skip to content

Commit

Permalink
fix config: upload_filter is optional, added default supervisor port
Browse files Browse the repository at this point in the history
  • Loading branch information
gubser committed Jun 29, 2016
1 parent ea5f7e8 commit e93072c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ptocore/coreconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def __init__(self, program_name: str, fps):

# validator specific
if program_name == "validator":
self.validator_upload_filter = doc['validator']['upload_filter']
self.validator_upload_filter = doc['validator'].get('upload_filter')
4 changes: 2 additions & 2 deletions ptocore/createconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def main():
help='also create a MongoDB script and save it at the specified path. '
'use \'-\' for printing to standard output. you also need to specify --mongo-metadata.')

parser.add_argument('--mongo-host', help='hostname or IP address of mongo server (default: localhost).')
parser.add_argument('--mongo-port', type=int, default=27017, help='port of mongo server (default 27017).')
parser.add_argument('--mongo-host', help='hostname or IP address of mongo server (default: localhost).', default='localhost')
parser.add_argument('--mongo-port', type=int, help='port of mongo server (default 27017).', default=27017)
parser.add_argument('--mongo-metadata', metavar='DATABASE',
help='if you want to create the MongoDB script, the name of the metadata database is needed.')

Expand Down

0 comments on commit e93072c

Please sign in to comment.