suppress non-json output for create edge router
@@ -78,9 +78,13 @@ func runCreateEdgeRouter(o *createEdgeRouterOptions) error {
id := result.S("data", "id").Data().(string)
+ if !o.OutputJSONResponse {
+
+ //output id
if _, err = fmt.Fprintf(o.Out, "%v\n", id); err != nil {
panic(err)
}
+ }
if o.jwtOutputFile != "" {
if err := getEdgeRouterJwt(o, id); err != nil {
