summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-04 17:24:37 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-04 17:24:37 -0400
commit2d14d31b9aa6b34eaacfad650b99f132c3a103ad (patch)
treee7259fd65bc7b8f902bc9be6baf619fc123058a3 /cobbler
parent9337f9411092bcd3da4005fa29557f875fbf68e8 (diff)
downloadthird_party-cobbler-2d14d31b9aa6b34eaacfad650b99f132c3a103ad.tar.gz
third_party-cobbler-2d14d31b9aa6b34eaacfad650b99f132c3a103ad.tar.xz
third_party-cobbler-2d14d31b9aa6b34eaacfad650b99f132c3a103ad.zip
remove FIXMEs as things have been tested and work WRT the duplication prevention feature.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/collection.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/cobbler/collection.py b/cobbler/collection.py
index 14bba57..e63c3ca 100644
--- a/cobbler/collection.py
+++ b/cobbler/collection.py
@@ -230,9 +230,7 @@ class Collection(serializable.Serializable):
"""
Prevents adding objects with the same name.
Prevents adding or editing to provide the same IP, or MAC.
- This applies to new "add" commands,
- Edits that are not copies/renames should only yelp if they match
- an object that is not the same as the object being edited. (FIXME)
+ Enforcement is based on whether the API caller requests it.
"""
# always protect against duplicate names
@@ -254,11 +252,6 @@ class Collection(serializable.Serializable):
if not check_for_duplicate_netinfo:
return
- # FIXME: if we run this command on edits it may yield false
- # positives when ref is set to replace an object of an existing
- # name, so we should probably /not/ run this on edits yet at this
- # point. Logic to deal with renames vs. edit/copies is somewhat
- # involved.
if isinstance(ref, item_system.System):
for (name, intf) in ref.interfaces.iteritems():
match_ip = []
@@ -270,9 +263,6 @@ class Collection(serializable.Serializable):
if not self.api.settings().allow_duplicate_ips and input_ip is not None and input_ip != "":
match_ip = self.api.find_system(ip_address=input_ip,return_list=True)
# it's ok to conflict with your own net info.
- # FIXME: copies won't ever work this way, so they should NOT
- # use the flags that engadge these checks. Renames should
- # be exempt also
for x in match_mac:
if x.name != ref.name: