Skip to content

Commit

Permalink
replace formcontent
Browse files Browse the repository at this point in the history
  • Loading branch information
fredwangwang authored and ljfranklin committed Jul 23, 2018
1 parent 0afeab6 commit 0512d38
Show file tree
Hide file tree
Showing 15 changed files with 336 additions and 353 deletions.
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

0 comments on commit 0512d38

Please sign in to comment.