Fix 'project' option handling.

A previous commit changed this option so that you provide a json file,
not a project name.  That makes sense ... but it didn't work.  Now it
does.
This commit is contained in:
Russell Bryant 2013-05-09 08:48:37 -04:00
parent e0d60b141f
commit 7eb75c35d8
1 changed files with 2 additions and 3 deletions

View File

@ -43,9 +43,8 @@ optparser.add_option('-k', '--key', default=None, help='ssh key for gerrit')
options, args = optparser.parse_args()
project_fn = '%s.json' % options.project
if os.path.isfile(project_fn):
with open(project_fn, 'r') as f:
if os.path.isfile(options.project):
with open(options.project, 'r') as f:
project = json.loads(f.read())
client = paramiko.SSHClient()