resources: Improve composition of Validate API in resources

This now appropriately calls the Base method.
This commit is contained in:
James Shubin
2017-01-16 19:28:00 -05:00
parent 51c83116a2
commit 2a6df875ec
13 changed files with 31 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ func (obj *PkgRes) Validate() error {
return fmt.Errorf("State cannot be empty!")
}
return nil
return obj.BaseRes.Validate()
}
// Init runs some startup code for this resource.