continuserv, speculator: update dump-swagger call

dump-swagger now expects -o before its output path
pull/977/head
Richard van der Hoff 7 years ago
parent 56c3e5a627
commit d6f892f894

@ -175,7 +175,7 @@ func generate(dir string) (map[string][]byte, error) {
// cheekily dump the swagger docs into the gen directory so that it is
// easy to serve
cmd = exec.Command("python", "dump-swagger.py", "gen/api-docs.json")
cmd = exec.Command("python", "dump-swagger.py", "-o", "gen/api-docs.json")
cmd.Dir = path.Join(dir, "scripts")
cmd.Stderr = &b
if err := cmd.Run(); err != nil {

@ -159,7 +159,7 @@ func generate(dir string) error {
// cheekily dump the swagger docs into the gen directory so they can be
// served by serveSpec
cmd = exec.Command("python", "dump-swagger.py", "gen/api-docs.json")
cmd = exec.Command("python", "dump-swagger.py", "-o", "gen/api-docs.json")
cmd.Dir = path.Join(dir, "scripts")
cmd.Stderr = &b
if err := cmd.Run(); err != nil {

Loading…
Cancel
Save