diff --git a/xCAT-server/sbin/chtab b/xCAT-server/sbin/chtab index b7aa6563f..eafe6564e 100755 --- a/xCAT-server/sbin/chtab +++ b/xCAT-server/sbin/chtab @@ -61,8 +61,8 @@ unless ($target) { } my %keyhash=(); -if ($target !~ /\./) { - my @keypairs=split(/,/,$target); +my @keypairs=split(/,/,$target); +if ($keypairs[0] !~ /([^\.\=]+)\.([^\.\=]+)\=(.+)/) { foreach (@keypairs) { m/(.*)=(.*)/; my $key=$1;