Skip to content

Commit 4d1d541

Browse files
committed
Fix session error no value
Error creating VNC connection for VM test5@bar/foo: 404-NOT_FOUND: Session not associated with authentication provider "<no value>".
1 parent e8d2607 commit 4d1d541

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sessiontoken.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ func (g *Guac) Call(m, u string, xq map[string]string, b interface{}) ([]byte, e
7777

7878
var buf bytes.Buffer
7979

80+
// do this as for some reason arguments are "supposed" to be filled in from some string array
81+
// but actually just aren't, so we check over the values we need and fill them in from the known source.
82+
for env, val := range map[string]*string{
83+
"Datasource": &g.Datasource,
84+
} {
85+
if _, ok := xq[env]; !ok {
86+
xq[env] = *val
87+
}
88+
}
89+
8090
err = ut.Execute(&buf, xq)
8191
if err != nil {
8292
return nil, err

0 commit comments

Comments
 (0)