ISCSIPlugin: Use long options for readability

We otherwise use the long options everywhere in the plugin.
This will build the following command:

iscsiadm  --mode session --sid 1 --rescan
Rescanning session [sid: 1, target: xxx, portal: yyy]
This commit is contained in:
Emmanuel Kasper
2017-10-09 10:39:18 +02:00
committed by Fabian Grünbichler
parent 4f6aa4af58
commit 6b4acdb460

View File

@ -136,7 +136,7 @@ sub iscsi_session_rescan {
}
foreach my $session (@$session_list) {
my $cmd = [$ISCSIADM, '--mode', 'session', '-r', $session, '-R'];
my $cmd = [$ISCSIADM, '--mode', 'session', '--sid', $session, '--rescan'];
eval { run_command($cmd, outfunc => sub {}); };
warn $@ if $@;
}