builder/amazon/common: go fmt
This commit is contained in:
parent
581c3574f6
commit
914e78f602
|
@ -30,7 +30,7 @@ func buildBlockDevices(b []BlockDevice) []*ec2.BlockDeviceMapping {
|
||||||
var blockDevices []*ec2.BlockDeviceMapping
|
var blockDevices []*ec2.BlockDeviceMapping
|
||||||
|
|
||||||
for _, blockDevice := range b {
|
for _, blockDevice := range b {
|
||||||
mapping := &ec2.BlockDeviceMapping {
|
mapping := &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String(blockDevice.DeviceName),
|
DeviceName: aws.String(blockDevice.DeviceName),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ func TestBlockDevice(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
Result: &ec2.BlockDeviceMapping{
|
Result: &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String("/dev/sdb"),
|
DeviceName: aws.String("/dev/sdb"),
|
||||||
Ebs: &ec2.EbsBlockDevice{
|
Ebs: &ec2.EbsBlockDevice{
|
||||||
SnapshotId: aws.String("snap-1234"),
|
SnapshotId: aws.String("snap-1234"),
|
||||||
VolumeType: aws.String("standard"),
|
VolumeType: aws.String("standard"),
|
||||||
|
@ -39,7 +39,7 @@ func TestBlockDevice(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
Result: &ec2.BlockDeviceMapping{
|
Result: &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String("/dev/sdb"),
|
DeviceName: aws.String("/dev/sdb"),
|
||||||
Ebs: &ec2.EbsBlockDevice{
|
Ebs: &ec2.EbsBlockDevice{
|
||||||
VolumeSize: aws.Int64(8),
|
VolumeSize: aws.Int64(8),
|
||||||
DeleteOnTermination: aws.Bool(false),
|
DeleteOnTermination: aws.Bool(false),
|
||||||
|
@ -56,7 +56,7 @@ func TestBlockDevice(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
Result: &ec2.BlockDeviceMapping{
|
Result: &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String("/dev/sdb"),
|
DeviceName: aws.String("/dev/sdb"),
|
||||||
Ebs: &ec2.EbsBlockDevice{
|
Ebs: &ec2.EbsBlockDevice{
|
||||||
VolumeType: aws.String("io1"),
|
VolumeType: aws.String("io1"),
|
||||||
VolumeSize: aws.Int64(8),
|
VolumeSize: aws.Int64(8),
|
||||||
|
@ -75,7 +75,7 @@ func TestBlockDevice(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
Result: &ec2.BlockDeviceMapping{
|
Result: &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String("/dev/sdb"),
|
DeviceName: aws.String("/dev/sdb"),
|
||||||
Ebs: &ec2.EbsBlockDevice{
|
Ebs: &ec2.EbsBlockDevice{
|
||||||
VolumeType: aws.String("gp2"),
|
VolumeType: aws.String("gp2"),
|
||||||
VolumeSize: aws.Int64(8),
|
VolumeSize: aws.Int64(8),
|
||||||
|
@ -102,8 +102,8 @@ func TestBlockDevice(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
Result: &ec2.BlockDeviceMapping{
|
Result: &ec2.BlockDeviceMapping{
|
||||||
DeviceName: aws.String("/dev/sdb"),
|
DeviceName: aws.String("/dev/sdb"),
|
||||||
NoDevice: aws.String(""),
|
NoDevice: aws.String(""),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue