Format updates
This commit is contained in:
parent
19a3502b36
commit
fe584f4448
|
@ -26,7 +26,7 @@ type DiskAttacher interface {
|
|||
WaitForDetach(ctx context.Context, diskID string) error
|
||||
}
|
||||
|
||||
var NewDiskAttacher = func (azureClient client.AzureClientSet) DiskAttacher {
|
||||
var NewDiskAttacher = func(azureClient client.AzureClientSet) DiskAttacher {
|
||||
return &diskAttacher{
|
||||
azcli: azureClient,
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ func Test_StepVerifySourceDisk_Run(t *testing.T) {
|
|||
GetDiskResponseCode: 200,
|
||||
GetDiskResponseBody: `{"location":"westus2"}`,
|
||||
},
|
||||
want: multistep.ActionHalt,
|
||||
want: multistep.ActionHalt,
|
||||
errormatch: "Could not parse resource id",
|
||||
},
|
||||
{
|
||||
|
@ -142,7 +142,7 @@ func Test_StepVerifySourceDisk_Run(t *testing.T) {
|
|||
})
|
||||
state.Put("ui", ui)
|
||||
|
||||
got := s.Run(context.TODO(), state);
|
||||
got := s.Run(context.TODO(), state)
|
||||
if !reflect.DeepEqual(got, tt.want) {
|
||||
t.Errorf("StepVerifySourceDisk.Run() = %v, want %v", got, tt.want)
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ func Test_StepVerifySourceDisk_Run(t *testing.T) {
|
|||
t.Errorf("Expected the error output (%q) to match %q", errorBuffer.String(), tt.errormatch)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if got == multistep.ActionHalt {
|
||||
if _, ok := state.GetOk("error"); !ok {
|
||||
t.Fatal("Expected 'error' to be set in statebag after failure")
|
||||
|
|
|
@ -125,6 +125,7 @@ Here are some examples using this builder.
|
|||
On a VM with a system-assigned managed identity that has the contributor role
|
||||
on its own resource group, the following config can be used to create an
|
||||
updated Debian image:
|
||||
|
||||
``` json
|
||||
{
|
||||
"builders": [{
|
||||
|
|
Loading…
Reference in New Issue