implement vc inventory scanning
This commit is contained in:
5
main.go
5
main.go
@@ -123,7 +123,8 @@ func main() {
|
||||
}
|
||||
vcPass, err := a.Decrypt(vcEp)
|
||||
if err != nil {
|
||||
logger.Error("failed to decrypt vcenter credentials", "error", err)
|
||||
logger.Error("failed to decrypt vcenter credentials. Assuming un-encrypted", "error", err)
|
||||
vcPass = []byte(vcEp)
|
||||
//os.Exit(1)
|
||||
}
|
||||
|
||||
@@ -188,7 +189,7 @@ func main() {
|
||||
logger.Debug("Created event processing cron job", "job", job.ID())
|
||||
|
||||
// start background checks of vcenter inventory
|
||||
startsAt2 := time.Now().Add(time.Second * 300)
|
||||
startsAt2 := time.Now().Add(time.Second * 30)
|
||||
job2, err := c.NewJob(
|
||||
gocron.DurationJob(cronInvFrequency),
|
||||
gocron.NewTask(func() {
|
||||
|
Reference in New Issue
Block a user