@@ -184,9 +184,9 @@ func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.Cluster
184
184
failed := []string {}
185
185
for i , name := range names {
186
186
if i > 0 {
187
- out .Styled (style .Empty , "" )
187
+ out .Styled (style .None , "" )
188
188
}
189
- out .Styled (style .Empty , "==> {{.name}} <==" , out.V {"name" : name })
189
+ out .Styled (style .None , "==> {{.name}} <==" , out.V {"name" : name })
190
190
var b bytes.Buffer
191
191
c := exec .Command ("/bin/bash" , "-c" , cmds [name ])
192
192
c .Stdout = & b
@@ -205,7 +205,7 @@ func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.Cluster
205
205
klog .Errorf ("failed to read output: %v" , err )
206
206
failed = append (failed , name )
207
207
}
208
- out .Styled (style .Empty , l )
208
+ out .Styled (style .None , l )
209
209
}
210
210
211
211
if len (failed ) > 0 {
@@ -216,25 +216,25 @@ func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.Cluster
216
216
217
217
// outputAudit displays the audit logs.
218
218
func OutputAudit (lines int ) error {
219
- out .Styled (style .Empty , "" )
220
- out .Styled (style .Empty , "==> Audit <==" )
219
+ out .Styled (style .None , "" )
220
+ out .Styled (style .None , "==> Audit <==" )
221
221
r , err := audit .Report (lines )
222
222
if err != nil {
223
223
return fmt .Errorf ("failed to create audit report: %v" , err )
224
224
}
225
- out .Styled (style .Empty , r .ASCIITable ())
225
+ out .Styled (style .None , r .ASCIITable ())
226
226
return nil
227
227
}
228
228
229
229
// outputLastStart outputs the last start logs.
230
230
func OutputLastStart () error {
231
- out .Styled (style .Empty , "" )
232
- out .Styled (style .Empty , "==> Last Start <==" )
231
+ out .Styled (style .None , "" )
232
+ out .Styled (style .None , "==> Last Start <==" )
233
233
fp := localpath .LastStartLog ()
234
234
f , err := os .Open (fp )
235
235
if os .IsNotExist (err ) {
236
236
msg := fmt .Sprintf ("Last start log file not found at %s" , fp )
237
- out .Styled (style .Empty , msg )
237
+ out .Styled (style .None , msg )
238
238
return nil
239
239
}
240
240
if err != nil {
@@ -246,7 +246,7 @@ func OutputLastStart() error {
246
246
for s .Scan () {
247
247
l += s .Text () + "\n "
248
248
}
249
- out .Styled (style .Empty , l )
249
+ out .Styled (style .None , l )
250
250
if err := s .Err (); err != nil {
251
251
return fmt .Errorf ("failed to read file %s: %v" , fp , err )
252
252
}
@@ -266,7 +266,7 @@ func OutputOffline(lines int, logOutput *os.File) {
266
266
klog .Errorf ("failed to output last start logs: %v" , err )
267
267
}
268
268
269
- out .Styled (style .Empty , "" )
269
+ out .Styled (style .None , "" )
270
270
}
271
271
272
272
// logCommands returns a list of commands that would be run to receive the anticipated logs
0 commit comments