Commit 9d4413d2 authored by Geoff Simmons's avatar Geoff Simmons

Fix removal of a Varnish admin Secret in an update operation.

parent 35ab70d1
......@@ -892,6 +892,11 @@ func (vc *Controller) UpdateSvcForSecret(
inst.admSecret = secret
}
if secretKey == "" {
return update.MakeSuccess(
"Secret deleted for Varnish svc %s", svcKey)
}
vc.log.Infof("Updating Service %s after setting secret %s", svcKey,
secretKey)
return errStatus(vc.updateVarnishSvc(svcKey))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment