cmd/uplink: fix 'must specify access' for old uplink configurations
Change-Id: I73b0483b1907a854048cdb1080a013844fb550f4
This commit is contained in:
parent
491cd8d8ab
commit
22af78b62e
@ -88,10 +88,6 @@ func (a AccessConfig) GetAccess() (_ *libuplink.Scope, err error) {
|
|||||||
a.Access = a.Scope
|
a.Access = a.Scope
|
||||||
}
|
}
|
||||||
|
|
||||||
if a.Access == "" {
|
|
||||||
return nil, errs.New("must specify access")
|
|
||||||
}
|
|
||||||
|
|
||||||
access, err := a.GetNamedAccess(a.Access)
|
access, err := a.GetNamedAccess(a.Access)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user