Revision 95e7e85e lib/rpc.py

b/lib/rpc.py
230 230
      args = (msg, )
231 231
    raise ec(*args) # pylint: disable=W0142
232 232

  
233
  def Warn(self, msg, feedback_fn):
234
    """If the result has failed, call the feedback_fn.
235

  
236
    This is used to in cases were LU wants to warn the
237
    user about a failure, but continue anyway.
238

  
239
    """
240
    if not self.fail_msg:
241
      return
242

  
243
    msg = "%s: %s" % (msg, self.fail_msg)
244
    feedback_fn(msg)
245

  
233 246

  
234 247
def _SsconfResolver(ssconf_ips, node_list, _,
235 248
                    ssc=ssconf.SimpleStore,

Also available in: Unified diff