Skip to content

Commit

Permalink
🐛 Fix ssh exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
gwennlbh committed Apr 14, 2024
1 parent e09f29a commit fe68d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exporters.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var BuiltinExporters = []Exporter{

// BuiltinYAMLExporters are exporters that can be accessed by their name directly. They should be available for download over the network at the github repository.
// TODO use go:embed instead
var BuiltinYAMLExporters = []string{"ssh-upload"}
var BuiltinYAMLExporters = []string{"ssh"}

func (ctx *RunContext) FindExporter(name string) (Exporter, error) {
for _, exporter := range BuiltinExporters {
Expand All @@ -86,7 +86,7 @@ func (ctx *RunContext) FindExporter(name string) (Exporter, error) {
}
for _, builtinName := range BuiltinYAMLExporters {
if builtinName == name {
return DownloadExporter(name, fmt.Sprintf("https://raw.githubusercontent.com/ortfodb/exporters/main/exporters/%s.yaml", name), ctx.Config.Exporters[name])
return DownloadExporter(name, fmt.Sprintf("https://raw.githubusercontent.com/ortfo/db/main/exporters/%s.yaml", name), ctx.Config.Exporters[name])
}
}
if strings.HasPrefix(name, "./") {
Expand Down
2 changes: 1 addition & 1 deletion exporters/ssh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ after:
{{ if .DryRun }} echo {{end}}
scp
{{ if .Verbose }} -v {{ end }}
{{ .Ctx.OutputDatabaseFilename }}
{{ .Ctx.OutputDatabaseFile }}
{{ index .Data "ssh" }}'

0 comments on commit fe68d02

Please sign in to comment.