diff options
Diffstat (limited to 'tradefed')
-rw-r--r-- | tradefed/autogen.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tradefed/autogen.go b/tradefed/autogen.go index a46dce931..596284beb 100644 --- a/tradefed/autogen.go +++ b/tradefed/autogen.go @@ -64,12 +64,16 @@ type Config interface { type Option struct { Name string + Key string Value string } var _ Config = Option{} func (o Option) Config() string { + if o.Key != "" { + return fmt.Sprintf(`<option name="%s" key="%s" value="%s" />`, o.Name, o.Key, o.Value) + } return fmt.Sprintf(`<option name="%s" value="%s" />`, o.Name, o.Value) } |