-
-
- #if node_state == 'DOWN' and node.status not in ['offline', 'down', 'disabled']:
- # if boot_state != 'disabled':
- # print "changed status from %s to offline" % node.status
- # node.status = 'offline'
- # node.last_changed = datetime.now()
- # else:
- # print "changed status from %s to %s" % (node.status, boot_state)
- # node.status = boot_state
- # node.last_changed = datetime.now()
-
- if node_state == 'DEBUG' and node.status != 'monitordebug' and \
- node.status != 'disabled' and \
- node.status != 'safeboot':
- if boot_state != 'disabled' and boot_state != 'safeboot':