Skip to content
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

replace formcontent #211

Merged
merged 1 commit into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
96 changes: 87 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
[[constraint]]
name = "github.com/pivotal-cf/kiln"
branch = "master"

[[constraint]]
name = "github.com/fredwangwang/formcontent"
branch = "threaded"
23 changes: 9 additions & 14 deletions commands/fakes/multipart.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions commands/import_installation.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ func (ii ImportInstallation) Execute(args []string) error {
return fmt.Errorf("failed to insert passphrase: %s", err)
}

submission, err := ii.multipart.Finalize()
submission := ii.multipart.Finalize()
if err != nil {
return fmt.Errorf("failed to create multipart form: %s", err)
}

ii.logger.Printf("beginning installation import to Ops Manager")

err = ii.service.UploadInstallationAssetCollection(api.ImportInstallationInput{
ContentLength: submission.Length,
Installation: submission.Content,
ContentType: submission.ContentType,
ContentLength: submission.ContentLength,
PollingInterval: ii.Options.PollingInterval,
})
if err != nil {
Expand Down
Loading