|
@@ -100,10 +100,14 @@ func (m *Manager) NewSSHProxy(binaryRoot string) (*Instance, error) {
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
- return &Instance{
|
|
|
+ thisInstance := Instance{
|
|
|
UUID: uuid.New().String(),
|
|
|
ExecPath: realpath,
|
|
|
- }, nil
|
|
|
+ }
|
|
|
+
|
|
|
+ m.Instances = append(m.Instances, &thisInstance)
|
|
|
+
|
|
|
+ return &thisInstance, nil
|
|
|
}
|
|
|
|
|
|
//Create a new Connection to target address
|