add Dead state for unvailable nodes
authorfsaintma <frederic.saint-marcel@inria.fr>
Fri, 18 Dec 2015 12:40:54 +0000 (13:40 +0100)
committerfsaintma <frederic.saint-marcel@inria.fr>
Fri, 18 Dec 2015 12:40:54 +0000 (13:40 +0100)
sfa/iotlab/iotlabaggregate.py

index ee95299..a0edf3a 100644 (file)
@@ -59,6 +59,7 @@ class IotLABAggregate(object):
         # rspec_node['boot_state'] = 'true'
         if node['state'] == 'Absent' or \
            node['state'] == 'Suspected' or \
+           node['state'] == 'Dead' or \
            node['state'] == 'Busy':
             rspec_node['available'] = 'false'
         else: