2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

return Error message if cannot convert the old telnet port attribute

getAllSets fix for commands containing =


git-svn-id: https://svn.fhem.de/fhem/trunk@1845 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-09-12 14:04:47 +00:00
parent 2c5c9fae59
commit 6b250d7780

View File

@ -359,7 +359,8 @@ createInterfaceDefinitions();
my $gp = $attr{global}{port};
if($gp) {
Log 3, "Converting 'attr global port $gp' to 'define telnetPort telnet $gp'";
CommandDefine(undef, "telnetPort telnet $gp");
my $ret = CommandDefine(undef, "telnetPort telnet $gp");
Log 1, "$ret" if($ret);
delete($attr{global}{port});
}
@ -1583,7 +1584,7 @@ getAllSets($)
my $em = AttrVal($d, "eventMap", undef);
if($em) {
$em = join(" ", grep { !/ / }
map { $_ =~ s/.*://s; $_ }
map { $_ =~ s/.*=//s; $_ }
EventMapAsList($em));
$a2 = "$em $a2";
}