X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FBoot.py;h=52a9fd93275dcca5ba2c6af41fc3c58462b1fbd1;hb=4e770b3cf4e6b16150fd479ace9854eaee3399b6;hp=cd3a7389c0240e89040156cb2f6d20f9dc230be1;hpb=c93e31479f4b3da49a06345e65179a9d16165c9b;p=plcapi.git diff --git a/PLC/Boot.py b/PLC/Boot.py index cd3a738..52a9fd9 100644 --- a/PLC/Boot.py +++ b/PLC/Boot.py @@ -4,8 +4,6 @@ # Mark Huang # Copyright (C) 2007 The Trustees of Princeton University # -# $Id$ -# from PLC.Faults import * from PLC.Debug import log @@ -40,8 +38,8 @@ def notify_owners(method, node, message_id, persons = Persons(method.api, site['person_ids']) for person in persons: - if include_pis and 'pi' in person['roles'] or \ - include_techs and 'tech' in person['roles']: + if (include_pis and 'pi' in person['roles'] and person['enabled']) or \ + (include_techs and 'tech' in person['roles'] and person['enabled']) : To.append(("%s %s" % (person['first_name'], person['last_name']), person['email'])) # Send email