diff options
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r-- | cobbler/remote.py | 4 |
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) |