Suggested changes

This commit is contained in:
Phani Teja Marupaka
2020-06-16 11:10:37 -07:00
parent 0f0efe2a4c
commit dbb16dcb6d
6 changed files with 115 additions and 7 deletions

View File

@@ -128,9 +128,9 @@ func (r *CreateSetterRunner) preRunE(c *cobra.Command, args []string) error {
r.CreateSetter.Type = r.Set.SetPartialField.Type
if r.CreateSetter.Type == "array" {
// this is just a place holder value, we derive the actual value at
// later point from the field path
r.CreateSetter.FieldValue = "listValues"
if !c.Flag("field").Changed {
return errors.Errorf("field flag must be set for array type setters")
}
}
}
return nil