8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae34934 commit 101702dCopy full SHA for 101702d
tailnet/controllers.go
@@ -897,17 +897,17 @@ type Workspace struct {
897
agents map[uuid.UUID]*Agent
898
}
899
900
-func (a *Workspace) Clone() Workspace {
+func (w *Workspace) Clone() Workspace {
901
agents := make(map[uuid.UUID]*Agent, len(a.agents))
902
- for k, v := range a.agents {
+ for k, v := range w.agents {
903
clone := v.Clone()
904
agents[k] = &clone
905
906
return Workspace{
907
- ID: a.ID,
908
- Name: a.Name,
909
- Status: a.Status,
910
- ownerUsername: a.ownerUsername,
+ ID: w.ID,
+ Name: w.Name,
+ Status: w.Status,
+ ownerUsername: w.ownerUsername,
911
agents: agents,
912
913
0 commit comments