engine: resources: nspawn: Use populate variable

We referred to the wrong variable. Not a major bug, but would produce a
useless or confusing error message otherwise.
This commit is contained in:
James Shubin
2019-10-21 07:38:42 -04:00
parent 2ea492c965
commit 06952c224b

View File

@@ -113,7 +113,7 @@ func (obj *NspawnRes) Validate() error {
return errwrap.Wrapf(err, "makeComposite failed in validate")
}
if err := svc.Validate(); err != nil { // composite resource
return errwrap.Wrapf(err, "validate failed for embedded svc: %s", obj.svc)
return errwrap.Wrapf(err, "validate failed for embedded svc: %s", svc)
}
return nil
}