synackray / vcenter-netbox-sync

Sync objects between vCenter and Netbox via Python3
Apache License 2.0
109 stars 28 forks source link

VMs have duplicated log.info() call #120

Open Haeki opened 4 years ago

Haeki commented 4 years ago

Environment

Steps to Reproduce

  1. Run Script
  2. "Collecting info about vCenter virtual-machines '%s' object." does appear twice

Expected Behavior

Line get logged only once

Observed Behavior

The log.info() call is made at the start of the loop and then again if vc_obj_type == "virtual_machines"

Solution

Remove the duplicated log entry