[PATCH] Fixed naming error for log files.

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

 



Signed-off-by: Ben Riggs <rigg0022@xxxxxxx>
---
 cobbler/cobblerd.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cobbler/cobblerd.py b/cobbler/cobblerd.py
index d9a5ced..d2ef336 100644
--- a/cobbler/cobblerd.py
+++ b/cobbler/cobblerd.py
@@ -71,11 +71,11 @@ def do_syslog(bootapi, settings, port, logger):
     while 1:
         data, addr = s.recvfrom(buf)
         (ip, port) = addr
-        name = bootapi.systems().find(ip_address = ip)
-        if not data and name:
+        system = bootapi.systems().find(ip_address = ip)
+        if not data and system:
             break
         else:
-            logfile = open("/var/log/cobbler/syslog/%s" % name, "a+")
+            logfile = open("/var/log/cobbler/syslog/%s" % system.name, "a+")
             t = time.localtime()
             # write numeric time
             seconds = str(time.mktime(t))
-- 
1.5.2.2

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

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

  Powered by Linux