Revision 3ac3f5e4 lib/cmdlib.py

b/lib/cmdlib.py
1448 1448

  
1449 1449
    """
1450 1450
    ltype = kwargs.get(self.ETYPE_FIELD, self.ETYPE_ERROR)
1451
    itype, etxt = ecode
1451
    itype, etxt, _ = ecode
1452 1452
    # first complete the msg
1453 1453
    if args:
1454 1454
      msg = msg % args
......
1473 1473

  
1474 1474
    # If the error code is in the list of ignored errors, demote the error to a
1475 1475
    # warning
1476
    (_, etxt) = ecode
1476
    (_, etxt, _) = ecode
1477 1477
    if etxt in self.op.ignore_errors:     # pylint: disable=E1101
1478 1478
      kwargs[self.ETYPE_FIELD] = self.ETYPE_WARNING
1479 1479

  

Also available in: Unified diff