8000 feat: Add template pull cmd by sreya · Pull Request #2329 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: Add template pull cmd #2329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
missed some files
  • Loading branch information
sreya committed Jun 15, 2022
commit 09196be17745507d831ec9e10efc6b22d13a60a2
2 changes: 1 addition & 1 deletion cli/templatepull.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func templatePull() *cobra.Command {
latest := versions[0]

// Download the tar archive.
raw, ctype, err := client.Download(ctx, latest.Job.SourceHash)
raw, ctype, err := client.Download(ctx, latest.Job.StorageSource)
if err != nil {
return xerrors.Errorf("download template: %w", err)
}
Expand Down
8 changes: 4 additions & 4 deletions coderd/provisionerjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ func convertProvisionerJobLog(provisionerJobLog database.ProvisionerJobLog) code

func convertProvisionerJob(provisionerJob database.ProvisionerJob) codersdk.ProvisionerJob {
job := codersdk.ProvisionerJob{
ID: provisionerJob.ID,
CreatedAt: provisionerJob.CreatedAt,
Error: provisionerJob.Error.String,
SourceHash: provisionerJob.StorageSource,
ID: provisionerJob.ID,
CreatedAt: provisionerJob.CreatedAt,
Error: provisionerJob.Error.String,
StorageSource: provisionerJob.StorageSource,
}
// Applying values optional to the struct.
if provisionerJob.StartedAt.Valid {
Expand Down
0