summaryrefslogtreecommitdiffstats
path: root/cobbler/remote.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-01 17:50:15 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-01 17:50:15 -0400
commit97a4085adb0d83efd1008614b2b7da5546016ea6 (patch)
tree71415df6a21fca093abed7b11e018f9d62babc05 /cobbler/remote.py
parent964b3328298dba0d8ea500e3349f5aa650344c20 (diff)
downloadthird_party-cobbler-97a4085adb0d83efd1008614b2b7da5546016ea6.tar.gz
third_party-cobbler-97a4085adb0d83efd1008614b2b7da5546016ea6.tar.xz
third_party-cobbler-97a4085adb0d83efd1008614b2b7da5546016ea6.zip
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.
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r--cobbler/remote.py4
1 files changed, 4 insertions, 0 deletions
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)