HomePhabricator

PuppetDB: fix handle of FAILED status

Authored by Volans on May 27 2019, 10:41 AM.

Description

PuppetDB: fix handle of FAILED status

  • Given that we now allow transitions to the FAILED status also from SPARE, PLANNED and STAGED, a device in FAILED status could not yet be in PuppetDB, hence it shouldn't alarm for those.
  • Modify test_netbox_in_puppetdb() so that devices in FAILED state are not checked for presence in PuppetDB.
  • Leave untouched test_puppetdb_in_netbox() so that devices that are in PuppetDB and are in FAILED state in Netbox are still valid.

Change-Id: I7bab572e6db7368a22ec646a7be01e45f96abb07

Details

Committed
VolansMay 27 2019, 10:41 AM
Parents
rOSNEf32bc898f436: Format README, remove mention to oldhardware.py
Branches
Unknown
Tags
Unknown
ChangeId
I7bab572e6db7368a22ec646a7be01e45f96abb07