From c8ec7c366edb0990253e15568889423004c98288 Mon Sep 17 00:00:00 2001 From: sjing Date: Mon, 14 Nov 2011 09:02:42 +0000 Subject: [PATCH] If site.dnshandler is blank, then default to ddns.pm. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 10c9af56e..fa61fff08 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -25,6 +25,12 @@ if ( $distro =~ /ubuntu.*/ ){ sub handled_commands { + my $sitetab = xCAT::Table->new('site'); + my $stab = $sitetab->getAttribs({key=>'dnshandler'},['value']); + unless ($stab and $stab->{value}) { + return {"makedns" => "ddns"}; + } + return {"makedns" => "site:dnshandler"}; } sub getzonesfornet {