fix setter bug

This commit is contained in:
Marko Oldenburg 2020-10-24 09:56:33 +02:00
parent 37673b2da1
commit 0e1468a032
2 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
UPD 2020-10-20_15:51:15 6126 FHEM/98_backupToStorage.pm
UPD 2020-10-24_09:53:27 16478 lib/FHEM/backupToStorage.pm
UPD 2020-10-24_09:56:25 16492 lib/FHEM/backupToStorage.pm

View File

@ -295,11 +295,11 @@ sub Set {
DeletePassword($hash);
}
else {
my $list = 'active,inactive';
my $list = 'active:noArg inactive:noArg';
$list .= (
defined( ReadPassword( $hash, $name ) )
? 'deletepassword:noArg'
: 'addpassword'
? ' deletepassword:noArg'
: ' addpassword'
);
return 'Unknown argument ' . $cmd . ', choose one of ' . $list;