fix bug #117: automatically add domain to hostname

This commit is contained in:
Dietmar Maurer 2012-03-29 10:20:27 +02:00
parent 532e77c765
commit cdf139926b
3 changed files with 15 additions and 1 deletions

View File

@ -349,6 +349,13 @@ __PACKAGE__->register_method({
$param->{nameserver} = join(' ', @ns) if scalar(@ns);
}
# try to append domain to hostmane
if ($param->{hostname} && $param->{hostname} !~ m/\./ &&
$param->{searchdomain}) {
$param->{hostname} .= ".$param->{searchdomain}";
}
my $basecfg_fn = PVE::OpenVZ::config_file($vmid);
my $check_vmid_usage = sub {

View File

@ -1,3 +1,10 @@
pve-manager (2.0-53) unstable; urgency=low
* fix bug #117: automatically add domain to hostname when creating
openvz containers.
-- Proxmox Support Team <support@proxmox.com> Thu, 29 Mar 2012 10:19:57 +0200
pve-manager (2.0-52) unstable; urgency=low
* fix Subscription code

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=52
PACKAGERELEASE=53
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5