resources: Unify resource creation and kind setting
This removes the duplication of the kind string and cleans up things for resource creation.
This commit is contained in:
@@ -52,7 +52,7 @@ func B64ToRes(str string) (Res, error) {
|
||||
}
|
||||
res, ok := output.(Res)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("Output %v is not a Res", res)
|
||||
return nil, fmt.Errorf("output `%v` is not a Res", output)
|
||||
|
||||
}
|
||||
return res, nil
|
||||
|
||||
Reference in New Issue
Block a user