Icinga/icingaweb2-module-vspheredb

Import VMs using Director Hook doesn't work on since 1.6 if machines are powered off

moreamazingnick opened this issue · 1 comments

Current Behavior

1.6 shows no virtual machines to import if they are powered off, regardless of setting the skip powererd off to no

Possible Solution

        if ($this->getSetting('skip_powered_off', 'n') === "y") {
            $query->where('runtime_power_state != ?', 'poweredOff');
        }

Steps to Reproduce (for bugs)

power off vms
Create vspheredb import source-> preview is empty, import is empty

Your Environment

  • VMware vCenter®/ESXi™-Version: 6.5
  • Version/GIT-Hash of this module: 1.6
  • Icinga Web 2 version: 2.11.4
  • Operating System and version: Ubuntu 20.04
  • Webserver, PHP versions: Apache 2 / php 7.4

PR has been merged, will be released with v1.7. Thanks for reporting this!