Return ScopeInfo for adding/setting/removing host set hosts (#491)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-29 12:24:54 -04:00
1 parent ac3725bf89
commit 15fadd40f4
1 file changed
+3
@@ -147,6 +147,7 @@ func (s Service) AddHostSetHosts(ctx context.Context, req *pbs.AddHostSetHostsRe
if err != nil {
return nil, err
}
g.Scope = authResults.Scope
return &pbs.AddHostSetHostsResponse{Item: g}, nil
}
@@ -163,6 +164,7 @@ func (s Service) SetHostSetHosts(ctx context.Context, req *pbs.SetHostSetHostsRe
if err != nil {
return nil, err
}
g.Scope = authResults.Scope
return &pbs.SetHostSetHostsResponse{Item: g}, nil
}
@@ -179,6 +181,7 @@ func (s Service) RemoveHostSetHosts(ctx context.Context, req *pbs.RemoveHostSetH
if err != nil {
return nil, err
}
g.Scope = authResults.Scope
return &pbs.RemoveHostSetHostsResponse{Item: g}, nil
}