diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-12-19 21:47:54 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-12-19 21:47:54 +0000 |
commit | a4d5620435bfad4557233efbb8bcd375b771c332 (patch) | |
tree | 3d533c8abf777db1f40dfeba8602ed02c1cdd291 | |
parent | ebeaec309a6440d1d4880873f8f65b1df94ac099 (diff) | |
download | bcfg2-a4d5620435bfad4557233efbb8bcd375b771c332.tar.gz bcfg2-a4d5620435bfad4557233efbb8bcd375b771c332.tar.bz2 bcfg2-a4d5620435bfad4557233efbb8bcd375b771c332.zip |
bug in hostbase web form
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2601 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Hostbase/hostbase/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py index f248f3189..464113045 100644 --- a/src/lib/Server/Hostbase/hostbase/views.py +++ b/src/lib/Server/Hostbase/hostbase/views.py @@ -277,15 +277,18 @@ def edit(request, host_id): name = Name(ip=new_ip, name=new_name, dns_view='global', only=False) name.save() + name.mxs.add(mx) new_name = "-".join([host.hostname.split(".")[0], new_inter.hdwr_type]) new_name += "." + host.hostname.split(".", 1)[1] name = Name(ip=new_ip, name=new_name, dns_view='global', only=False) name.save() + name.mxs.add(mx) name = Name(ip=new_ip, name=host.hostname, dns_view='global', only=False) name.save() + name.mxs.add(mx) host.save() return HttpResponseRedirect('/hostbase/%s/' % host.id) else: |