summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Probes.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-17 08:49:50 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-17 08:50:04 -0400
commitba133d1e5289a71ba1f312e582a62ca83f9085f9 (patch)
tree8a18506be471c5c8b463e4f1bb1728587e9c83f7 /src/lib/Bcfg2/Server/Plugins/Probes.py
parentdbc0e1182590eee2711cf537f20ab262418837d9 (diff)
downloadbcfg2-ba133d1e5289a71ba1f312e582a62ca83f9085f9.tar.gz
bcfg2-ba133d1e5289a71ba1f312e582a62ca83f9085f9.tar.bz2
bcfg2-ba133d1e5289a71ba1f312e582a62ca83f9085f9.zip
Probes: no need to .save() after .get_or_create()
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Probes.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Probes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py
index 20e366523..8937e4740 100644
--- a/src/lib/Bcfg2/Server/Plugins/Probes.py
+++ b/src/lib/Bcfg2/Server/Plugins/Probes.py
@@ -260,7 +260,7 @@ class Probes(Bcfg2.Server.Plugin.Probing,
group=group).delete()
ProbesGroupsModel.objects.get_or_create(
hostname=client.hostname,
- group=group).save()
+ group=group)
ProbesGroupsModel.objects.filter(
hostname=client.hostname).exclude(
group__in=self.cgroups[client.hostname]).delete()