mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
fix
This commit is contained in:
+3
-4
@@ -76,11 +76,10 @@ func GetParameters(templatePath string) ([]types.Parameter, error) {
|
||||
var found bool
|
||||
for i := 0; i < tempStruct.Len(); i++ {
|
||||
paraDef = tempStruct.Field(i)
|
||||
if !paraDef.IsDefinition || paraDef.IsHidden {
|
||||
continue
|
||||
if paraDef.Name == specValue {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
found = true
|
||||
break
|
||||
}
|
||||
if !found {
|
||||
return nil, errors.New("arguments not exist")
|
||||
|
||||
Reference in New Issue
Block a user