Fix bug in snapshot client creation
This commit is contained in:
parent
8d8c86366b
commit
8881bc2d64
|
@ -34,8 +34,8 @@ func (s *StepSnapshotDataDisks) createDataDiskSnapshot(ctx context.Context, reso
|
||||||
srcVhdToSnapshot := compute.Snapshot{
|
srcVhdToSnapshot := compute.Snapshot{
|
||||||
DiskProperties: &compute.DiskProperties{
|
DiskProperties: &compute.DiskProperties{
|
||||||
CreationData: &compute.CreationData{
|
CreationData: &compute.CreationData{
|
||||||
CreateOption: compute.Import,
|
CreateOption: compute.Copy,
|
||||||
SourceURI: to.StringPtr(srcUriVhd),
|
SourceResourceID: to.StringPtr(srcUriVhd),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Location: to.StringPtr(location),
|
Location: to.StringPtr(location),
|
||||||
|
|
|
@ -33,8 +33,8 @@ func (s *StepSnapshotOSDisk) createSnapshot(ctx context.Context, resourceGroupNa
|
||||||
srcVhdToSnapshot := compute.Snapshot{
|
srcVhdToSnapshot := compute.Snapshot{
|
||||||
DiskProperties: &compute.DiskProperties{
|
DiskProperties: &compute.DiskProperties{
|
||||||
CreationData: &compute.CreationData{
|
CreationData: &compute.CreationData{
|
||||||
CreateOption: compute.Import,
|
CreateOption: compute.Copy,
|
||||||
SourceURI: to.StringPtr(srcUriVhd),
|
SourceResourceID: to.StringPtr(srcUriVhd),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Location: to.StringPtr(location),
|
Location: to.StringPtr(location),
|
||||||
|
|
Loading…
Reference in New Issue