Skip to content

Commit

Permalink
fix issue where closing the window during the pause prompt may not cl…
Browse files Browse the repository at this point in the history
…ose the archive
  • Loading branch information
brightpuddle committed Jun 6, 2023
1 parent c568aa7 commit 9e28ae7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.0
2.7.0
3 changes: 1 addition & 2 deletions cmd/collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func main() {
if err != nil {
log.Fatal().Err(err).Msgf("Error creating archive file: %s.", args.Output)
}
defer arc.Close()

// Initiate requests
reqs, err := req.GetRequests()
Expand All @@ -79,7 +78,7 @@ func main() {
}
batch++
}

arc.Close()
fmt.Println(strings.Repeat("=", 30))
fmt.Println("Complete")
fmt.Println(strings.Repeat("=", 30))
Expand Down
2 changes: 2 additions & 0 deletions vetr-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ icurl -kG https://localhost/api/class/coopPol.json > /tmp/vetr-collector/coopPol
icurl -kG https://localhost/api/class/mcpInstPol.json > /tmp/vetr-collector/mcpInstPol.json
icurl -kG https://localhost/api/class/l3extLNodeP.json > /tmp/vetr-collector/l3extLNodeP.json
icurl -kG https://localhost/api/class/l3extRsNodeL3OutAtt.json > /tmp/vetr-collector/l3extRsNodeL3OutAtt.json
icurl -kG https://localhost/api/class/eqptExtCh.json > /tmp/vetr-collector/eqptExtCh.json
icurl -kG https://localhost/api/class/fvnsVlanInstP.json > /tmp/vetr-collector/fvnsVlanInstP.json
icurl -kG https://localhost/api/class/fvnsEncapBlk.json > /tmp/vetr-collector/fvnsEncapBlk.json
icurl -kG https://localhost/api/class/infraAttEntityP.json > /tmp/vetr-collector/infraAttEntityP.json
icurl -kG https://localhost/api/class/infraRsDomP.json > /tmp/vetr-collector/infraRsDomP.json
icurl -kG https://localhost/api/class/fvRsDomAtt.json > /tmp/vetr-collector/fvRsDomAtt.json
icurl -kG https://localhost/api/class/infraRsFuncToEpg.json > /tmp/vetr-collector/infraRsFuncToEpg.json
icurl -kG https://localhost/api/class/infraPortTrackPol.json > /tmp/vetr-collector/infraPortTrackPol.json
icurl -kG https://localhost/api/class/fabricRsTimePol.json > /tmp/vetr-collector/fabricRsTimePol.json
icurl -kG https://localhost/api/class/datetimePol.json > /tmp/vetr-collector/datetimePol.json
Expand Down

0 comments on commit 9e28ae7

Please sign in to comment.