From ac0a5824615da4e0424106c28cc656561f61b572 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 28 May 2022 14:32:32 -0500 Subject: [PATCH] both power protection and power distribution --- hostapps/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hostapps/update.py b/hostapps/update.py index 5c52a92..667515c 100644 --- a/hostapps/update.py +++ b/hostapps/update.py @@ -56,9 +56,10 @@ def main(): schneider = nb.dcim.manufacturers.get(name="Schneider") power_protection = nb.dcim.device_roles.get(name="Power Protection") + power_distribution = nb.dcim.device_roles.get(name="Power Distribution") for device in nb.dcim.devices.filter( manufacturer_id=schneider.id, - role_id=power_protection.id, + role_id=[power_protection.id, power_distribution.id], status="active", has_primary_ip="true", ):