mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
scstadmin: Fix a bug in the code for forcibly applying a configuration
Pass the -force option from ... to removeGroup(). Signed-off-by: YuFan Chen <wiz.chen@gmail.com> [ bvanassche: added commit message ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2445,7 +2445,8 @@ sub applyConfigAssignments {
|
||||
|
||||
if (!defined($$config{'TARGET_DRIVER'}->{$driver}->{'TARGET'}->{$target}->{'GROUP'}->{$group})) {
|
||||
if ($deletions) {
|
||||
removeGroup($driver, $target, $group);
|
||||
removeGroup($driver, $target,
|
||||
$group, TRUE);
|
||||
$changes++;
|
||||
} else {
|
||||
print "\t-> Group '$group' is not in configuration. Use -force to remove.\n";
|
||||
|
||||
Reference in New Issue
Block a user