Again fixed issue with cpanel sync return code handling

This commit is contained in:
Maff 2014-02-11 15:07:13 +00:00
parent f91f2a80e2
commit 35f3977ee6
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ sub do_sync {
print "Syncing zone $zone... ";
nicedie "Couldn't sync $zone: Don't have a known sync method for network type $net_type." unless $net_type eq "cpanel";
$res = sync_cpanel $zone if $net_type eq "cpanel";
print (($res) ? "Synchronised\n" : "Failed\n");
print (($res == 0) ? "Synchronised\n" : "Failed\n");
}
#main