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:
Bart Van Assche
2021-06-18 04:45:40 +00:00
parent b3aabb0b8e
commit 05afc999f1

View File

@@ -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";