Skip to content

Commit

Permalink
make cloud-init finish regexp a bit more restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed May 28, 2024
1 parent 79c61b6 commit c132754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func extractAddresses(srv *servers.Server) (map[string][]Address, error) {
return ret, nil
}

var initFinishedRe = regexp.MustCompile(`^.*Cloud-init\ v\.\ .+\ finished\ at.*$`)
var initFinishedRe = regexp.MustCompile(`^.*Cloud-init\ v\.\ \S+\ finished\ at.*$`)

func IsCloudInitFinished(log string) bool {
lines := strings.Split(log, "\n")
Expand Down

0 comments on commit c132754

Please sign in to comment.