Skip to content

Commit 907106b

Browse files
Arta AsadiArta Asadi
Arta Asadi
authored and
Arta Asadi
committed
fix: update task migrator
1 parent fd12778 commit 907106b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: jobs/cloudql-init-job/job.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (j *Job) Run(ctx context.Context) (*steampipe.Database, error) {
145145
return nil, err
146146
}
147147

148-
dirPath := basePath + "/" + task.SteampipePluginName + "@latest"
148+
dirPath := basePath + "/" + task.ID + "@latest"
149149
// create directory if not exists
150150
if _, err := os.Stat(dirPath); os.IsNotExist(err) {
151151
err := os.MkdirAll(dirPath, os.ModePerm)
@@ -156,7 +156,7 @@ func (j *Job) Run(ctx context.Context) (*steampipe.Database, error) {
156156
}
157157

158158
// write the plugin to the file system
159-
pluginPath := dirPath + "/steampipe-plugin-" + task.SteampipePluginName + ".plugin"
159+
pluginPath := dirPath + "/" + task.SteampipePluginName + ".plugin"
160160
err := os.WriteFile(pluginPath, []byte(cloudqlBinary), 0777)
161161
if err != nil {
162162
j.logger.Error("failed to write plugin to file system", zap.Error(err), zap.String("plugin", task.SteampipePluginName))

0 commit comments

Comments
 (0)