(no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




- Avis: Ce message est confidentiel et ne s'adresse qu'aux destinataires. Si vous le recevez par erreur, veuillez le supprimer et nous en aviser.
-
Hi

I'm trying to run this script :

#!/usr/bin/python
# report on any drives with SMART issues
# these are likely going to kick the bucket
# (C) Michael DeHaan, 2007 <mdehaan@xxxxxxxxxx>
# ===============================================

import func.overlord.client as fc

info = fc.Client("*").command.run("rug --terse ca>/tmp/rug.log")

failures = 0

for (host,details) in info.iteritems():

if type(details) != list:
print "%s had an error : %s" % (host,str(details))
break

(rc, list_of_output) = details
if rc != 0:
print "============================================"
print "Host %s may have problems" % host
print "\n".join(list_of_output[3:])
failures = failures + 1

print "\n%s systems reported problems" % failures

And I get the following error message :

Traceback (most recent call last):
File "/test/test2.py", line 19, in ?
(rc, list_of_output) = details
ValueError: too many values to unpack

Claude

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux