internap / virtualpdu

A virtual power distribution unit (PDU) for controlling libvirt virtual machines via SNMP commands.
Apache License 2.0
3 stars 6 forks source link

Ensure APCRackPDU instanciation does not update core #4

Closed mat128 closed 8 years ago

mat128 commented 8 years ago

Currently, APCRackPDU will notify the core for all of it's port being updated as power state "ON" because of improper usage of the PDU class. In fact, the PDU class provides support for "default" values that bypass the callback.

This commit uses the right field and adds a unit test to cover that case.

lindycoder commented 8 years ago

👍

godp1301 commented 8 years ago

👍