From 97a4085adb0d83efd1008614b2b7da5546016ea6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 1 May 2008 17:50:15 -0400 Subject: Working on adding a "cobbler buildiso" command to generate non-live CD's. Menu does not work yet, but getting there. Also made registration check for duplicate macs, but needs testing. --- cobbler/remote.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cobbler/remote.py') diff --git a/cobbler/remote.py b/cobbler/remote.py index a7e056b..18c3947 100644 --- a/cobbler/remote.py +++ b/cobbler/remote.py @@ -248,6 +248,10 @@ class CobblerXMLRPCInterface: if mac.find(" ") != -1: mac = mac.split()[-1] + dup = self.api.find_system(mac_address=mac) + if dup is not None: + return 4 + self.log("register mac for profile %s" % profile,token=token,name=mac) obj = self.api.new_system() obj.set_profile(profile) -- cgit