Revision 07e4ab22

b/snf-cyclades-gtools/synnefo/ganeti/eventd.py
128 128

  
129 129

  
130 130
        for op in job.ops:
131
            instances = ""
131
            instances = None
132 132
            try:
133 133
                instances = " ".join(op.input.instances)
134 134
            except AttributeError:
......
139 139
            except AttributeError:
140 140
                pass
141 141

  
142
            if not instances or len(instances.split(" ")) != 1:
143
                # Do not publish messages for jobs with no or multiple
144
                # instances.
145
                # Currently snf-dispatcher can not normally handle these messages
146
                self.logger.debug("Ignoring Job: %d: %s(%s)", int(job.id),
147
                                  op.input.OP_ID, instances)
148
                continue
149

  
142 150
            # Get the last line of the op log as message
143 151
            try:
144 152
                logmsg = op.log[-1][-1]

Also available in: Unified diff