Skip to content

Commit

Permalink
feat: add modification time file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesserli committed May 13, 2024
1 parent 6e86cab commit 1eb05ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func main() {
if err != nil {
logger.Fatal(err)
}
if len(conf.UpdatedFiles) > 0 {
err = os.WriteFile("generated/last_modified.txt", []byte(time.Now().Format(time.RFC3339)), os.ModePerm)
}
}

func loadPrefixes(prefixes []model.IPAMPrefix, nc netbox.Client) []prefixIPs {
Expand Down

0 comments on commit 1eb05ae

Please sign in to comment.