cli: ensure tagged-devices is included in profile list (#2991)
This commit is contained in:
parent
f5c779626a
commit
72fcb93ef3
15 changed files with 184 additions and 47 deletions
|
|
@ -719,7 +719,13 @@ func (node Node) DebugString() string {
|
|||
return sb.String()
|
||||
}
|
||||
|
||||
func (nv NodeView) UserView() UserView {
|
||||
// Owner returns the owner for display purposes.
|
||||
// For tagged nodes, returns TaggedDevices. For user-owned nodes, returns the user.
|
||||
func (nv NodeView) Owner() UserView {
|
||||
if nv.IsTagged() {
|
||||
return TaggedDevices.View()
|
||||
}
|
||||
|
||||
return nv.User()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue