Fix format

This commit is contained in:
Moss 2020-03-13 16:36:30 +01:00
parent 2a7847a2ab
commit 449a299ee3
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ import (
)
type AWSHelper struct {
Region string
Region string
AMIName string
}
@ -30,7 +30,7 @@ func (a *AWSHelper) CleanUpAmi(t *testing.T) {
Values: aws.StringSlice([]string{a.AMIName}),
}}})
if err != nil {
t.Errorf("AWSAMICleanUp: Unable to find Image %s: %s",a.AMIName, err.Error())
t.Errorf("AWSAMICleanUp: Unable to find Image %s: %s", a.AMIName, err.Error())
}
_, err = regionconn.DeregisterImage(&ec2.DeregisterImageInput{
@ -39,4 +39,4 @@ func (a *AWSHelper) CleanUpAmi(t *testing.T) {
if err != nil {
t.Errorf("AWSAMICleanUp: Unable to Deregister Image %s", err.Error())
}
}
}

View File

@ -27,8 +27,8 @@ func testCoreConfigBuilder(t *testing.T) *packer.CoreConfig {
"amazon-ebs": func() (packer.Builder, error) { return &amazonebsbuilder.Builder{}, nil },
},
ProvisionerStore: packer.MapOfProvisioner{
"shell": func() (packer.Provisioner, error) { return &shell.Provisioner{}, nil },
"file": func() (packer.Provisioner, error) { return &fileprovisioner.Provisioner{}, nil },
"shell": func() (packer.Provisioner, error) { return &shell.Provisioner{}, nil },
"file": func() (packer.Provisioner, error) { return &fileprovisioner.Provisioner{}, nil },
},
PostProcessorStore: packer.MapOfPostProcessor{},
}
@ -63,4 +63,4 @@ func FatalCommand(t *testing.T, m command.Meta) {
"Bad exit code.\n\nStdout:\n\n%s\n\nStderr:\n\n%s",
out.String(),
err.String())
}
}