move write statuses logic to a separate func

pull/9487/head
Predrag Rogic 2020-11-05 19:30:33 +00:00
parent f57d9bfa73
commit 95e6afb1b9
No known key found for this signature in database
GPG Key ID: F1FF5748C4855229
1 changed files with 4 additions and 0 deletions

View File

@ -217,7 +217,11 @@ var statusCmd = &cobra.Command{
}
// writeStatusesAtInterval writes statuses in a given output format - at intervals defined by duration
<<<<<<< HEAD
func writeStatusesAtInterval(duration time.Duration, api libmachine.API, cc *config.ClusterConfig) {
=======
func writeStatusesAtInterval(duration time.Duration, api libmachine.API, cc *config.ClusterConfig) int {
>>>>>>> ab981fe40 (move write statuses logic to a separate func)
for {
var statuses []*Status