Revision 2c0f74f2

b/lib/rpc.py
226 226
        self.fail_msg = None
227 227
        self.payload = data[1]
228 228

  
229
    assert hasattr(self, "call")
230
    assert hasattr(self, "data")
231
    assert hasattr(self, "fail_msg")
232
    assert hasattr(self, "node")
233
    assert hasattr(self, "offline")
234
    assert hasattr(self, "payload")
229
    for attr_name in ["call", "data", "fail_msg",
230
                      "node", "offline", "payload"]:
231
      assert hasattr(self, attr_name), "Missing attribute %s" % attr_name
235 232

  
236 233
  @staticmethod
237 234
  def _EnsureErr(val):

Also available in: Unified diff