Update post-processor/yandex-export/step-attach-disk.go

Co-authored-by: GennadySpb <lipenkov@gmail.com>
This commit is contained in:
Roman Mingazeev 2020-12-10 15:17:21 +03:00 committed by GitHub
parent ceb02833a4
commit 69adcdb2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func (c *StepAttachDisk) Run(ctx context.Context, state multistep.StateBag) mult
} }
md, ok := protoMD.(*compute.CreateDiskMetadata) md, ok := protoMD.(*compute.CreateDiskMetadata)
if !ok { if !ok {
return yandex.StepHaltWithError(state, fmt.Errorf("could not get Instance ID from create operation metadata")) return yandex.StepHaltWithError(state, fmt.Errorf("could not get Disk ID from create operation metadata"))
} }
state.Put("secondary_disk_id", md.GetDiskId()) state.Put("secondary_disk_id", md.GetDiskId())