engine: resources: Work around a subtle embedded res bug

This is a subtle issue that was found that caused a panic. This should
solve things for now, but it would be wise to build embedded or
composite resources sparingly until we we're certain this would work the
way we wanted for all scenarios.
This commit is contained in:
James Shubin
2018-12-16 16:07:42 -05:00
parent da0ffa5e56
commit b1eb6711b7
3 changed files with 13 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ func init() {
type NspawnRes struct {
traits.Base // add the base methods without re-implementation
//traits.Groupable // TODO: this would be quite useful for this resource
traits.Refreshable // needed because we embed a svc res
init *engine.Init