Skip to content

Commit

Permalink
Handle unspecified schema value correctly. (Fix to code from #456)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jun 21, 2018
1 parent b590ef0 commit 5f06a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pscheduler-test-throughput/throughput/spec-to-cli
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ if not valid:
strings = []
bools = []

if spec['schema'] == 2:

if spec.get('schema', 1) == 2:
spec_properties = validate.SPEC_SCHEMA['local']['throughput_v2']['properties']
else:
spec_properties = validate.SPEC_SCHEMA['local']['throughput_v1']['properties']
Expand Down

0 comments on commit 5f06a35

Please sign in to comment.