resources: Improve composition of Validate API in resources
This now appropriately calls the Base method.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user