@@ -76,7 +76,7 @@ func executeVirtioScsiLun(ctx context.Context, c6 pb.FrontendVirtioScsiServiceCl
76
76
if rss1 .Name != ctrlrName {
77
77
return fmt .Errorf ("server filled value '%s' is not matching user requested '%s'" , rss1 .Name , ctrlrName )
78
78
}
79
- rl1 , err := c6 .CreateVirtioScsiLun (ctx , & pb.CreateVirtioScsiLunRequest {VirtioScsiLunId : resourceID , VirtioScsiLun : & pb.VirtioScsiLun {Name : "" , TargetId : & pbc. ObjectKey { Value : resourceID }, VolumeId : & pbc. ObjectKey { Value : "Malloc1" } }})
79
+ rl1 , err := c6 .CreateVirtioScsiLun (ctx , & pb.CreateVirtioScsiLunRequest {VirtioScsiLunId : resourceID , VirtioScsiLun : & pb.VirtioScsiLun {Name : "" , TargetNameRef : resourceID , VolumeNameRef : "Malloc1" }})
80
80
if err != nil {
81
81
return err
82
82
}
@@ -87,7 +87,7 @@ func executeVirtioScsiLun(ctx context.Context, c6 pb.FrontendVirtioScsiServiceCl
87
87
log .Printf ("Added VirtioScsiLun: %v" , rl1 )
88
88
rl3 , err := c6 .UpdateVirtioScsiLun (ctx , & pb.UpdateVirtioScsiLunRequest {
89
89
UpdateMask : & fieldmaskpb.FieldMask {Paths : []string {"*" }},
90
- VirtioScsiLun : & pb.VirtioScsiLun {Name : rl1 .Name , TargetId : & pbc. ObjectKey { Value : resourceID }, VolumeId : & pbc. ObjectKey { Value : "Malloc1" } }})
90
+ VirtioScsiLun : & pb.VirtioScsiLun {Name : rl1 .Name , TargetNameRef : resourceID , VolumeNameRef : "Malloc1" }})
91
91
if err != nil {
92
92
return err
93
93
}
@@ -101,7 +101,7 @@ func executeVirtioScsiLun(ctx context.Context, c6 pb.FrontendVirtioScsiServiceCl
101
101
if err != nil {
102
102
return err
103
103
}
104
- log .Printf ("Got VirtioScsiLun: %v" , rl5 .VolumeId . Value )
104
+ log .Printf ("Got VirtioScsiLun: %v" , rl5 .VolumeNameRef )
105
105
rl6 , err := c6 .StatsVirtioScsiLun (ctx , & pb.StatsVirtioScsiLunRequest {Name : rl1 .Name })
106
106
if err != nil {
107
107
return err
0 commit comments