Comment 0 for bug 1639339

Revision history for this message
Richard G. Pioso (richard.pioso) wrote :

Seen in stable/newton.

The python-dracclient job resource's JobManagement.get_job() causes a FutureWarning. When that function is called, the following is output.

/usr/lib/python2.7/site-packages/dracclient/resources/job.py:103: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
  if drac_job:

The fix is straightforward. Change the line to

  if drac_job is not None: