func-inventory Patch

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

 



Hey Folks,

I've been a happy user of func for over a year now and loving it. I've been running func-inventory on a set of machines for a while and I've noticed that whenever one (or more) server is down, func-inventory stops in it's tracks complaining about 'connection refused' and never completes the run on the rest of the machines. I've attached a patch for inventory.py which essentially allows the script to continue with the rest of the servers in the list (changed a 'break' to 'continue'). This is my first patch being submitted to the list, so please let me know if I'm not following standard procedure.

Thanks for all your efforts!

hany
diff -ru func-0.27-orig/func/overlord/inventory.py func-0.27/func/overlord/inventory.py
--- func-0.27-orig/func/overlord/inventory.py   2009-11-24 10:19:11.000000000 -0500
+++ func-0.27/func/overlord/inventory.py        2011-03-11 13:40:34.000000000 -0500
@@ -88,7 +88,7 @@
 
             if utils.is_error(methods):
                 sys.stderr.write("-- connection refused: %s\n" % host) 
-                break 
+                continue
 
             for each_method in methods:
_______________________________________________
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