File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ func Extract(params *ExtractParams) error {
65
65
if name == "" || ! ok {
66
66
return errors .New ("dashboard template does not have a valid name" )
67
67
}
68
- outfile := name + "-dashboard" + "." + params .Format
68
+ name = strings .Join (strings .Fields (name ), "" )
69
+ outfile := name + "-dashboard." + params .Format
69
70
params .Outfile = & outfile
70
71
}
71
72
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ func Extract(params *ExtractParams) error {
65
65
if name == "" || ! ok {
66
66
return errors .New ("thing template does not have a valid name" )
67
67
}
68
- outfile := name + "." + params .Format
68
+ name = strings .Join (strings .Fields (name ), "" )
69
+ outfile := name + "-thing." + params .Format
69
70
params .Outfile = & outfile
70
71
}
71
72
You can’t perform that action at this time.
0 commit comments