remove errant change in amazon builder

pull/5819/head
Megan Marsh 8 years ago
parent 4622bb4585
commit de2e5edf2e

@ -6,7 +6,6 @@ import (
"io/ioutil"
"os"
"runtime"
"strings"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/helper/multistep"
@ -37,7 +36,7 @@ func (s *StepKeyPair) Run(_ context.Context, state multistep.StateBag) multistep
}
state.Put("keyPair", s.KeyPairName)
state.Put("privateKey", strings.TrimSpace(string(privateKeyBytes)))
state.Put("privateKey", string(privateKeyBytes))
return multistep.ActionContinue
}

@ -35,8 +35,7 @@ func (b *Builder) Prepare(rawConfig ...interface{}) ([]string, error) {
}
func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) {
loggingEnabled := os.Getenv("PACKER_OCI_CLASSIC_LOGGING")) != ""
loggingEnabled := os.Getenv("PACKER_OCI_CLASSIC_LOGGING") != ""
httpClient := cleanhttp.DefaultClient()
config := &opc.Config{
Username: opc.String(b.config.Username),

Loading…
Cancel
Save