Fix Get EC object from non container node #1253
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ func (w *headSvcWrapper) headAddress(ctx context.Context, exec *execCtx, addr oi
|
|||
wr := getsvc.NewSimpleObjectWriter()
|
||||
|
||||
p := getsvc.HeadPrm{}
|
||||
p.SetCommonParameters(exec.commonParameters())
|
||||
|
||||
if cp := exec.commonParameters(); cp != nil {
|
||||
commonParameters := *cp
|
||||
p.SetCommonParameters(&commonParameters)
|
||||
}
|
||||
|
||||
p.SetHeaderWriter(wr)
|
||||
p.WithRawFlag(true)
|
||||
p.WithAddress(addr)
|
||||
|
|
Loading…
Reference in a new issue