fix invalid syntax in fortiOS output

This commit is contained in:
Steven Polley 2020-05-29 20:36:51 -06:00
parent 17cfaf377a
commit 2df2ec2ba9

View File

@ -30,7 +30,7 @@ func config(redirects []Redirect) error {
} else {
ruleName = redirect.sourceURL
}
fmt.Println("set action redirect")
fmt.Sprintf("edit \"%s\"\n", ruleName)
fmt.Printf("set location %s\n", redirect.destinationURL)
fmt.Println("set action redirect")
fmt.Println("config match-condition")