mirror of https://github.com/k3s-io/k3s
Fix extra-log flag for node e2e.
Signed-off-by: Lantao Liu <lantaol@google.com>pull/8/head
parent
89b56c25f8
commit
c86e85c420
|
@ -44,12 +44,6 @@ func (l *logFiles) String() string {
|
||||||
|
|
||||||
// Set function of flag.Value
|
// Set function of flag.Value
|
||||||
func (l *logFiles) Set(value string) error {
|
func (l *logFiles) Set(value string) error {
|
||||||
// Someone else is calling flag.Parse after the flags are parsed in the
|
|
||||||
// test framework. Use this to avoid the flag being parsed twice.
|
|
||||||
// TODO(random-liu): Figure out who is parsing the flags.
|
|
||||||
if flag.Parsed() {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
var log LogFileData
|
var log LogFileData
|
||||||
if err := json.Unmarshal([]byte(value), &log); err != nil {
|
if err := json.Unmarshal([]byte(value), &log); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue