fix: interactive: remove unnecessary loops for autocomplete

pull/457/head
Stéphane Lesimple 2 years ago committed by Stéphane Lesimple
parent fa842c94d8
commit 3d1e210dd8

@ -142,7 +142,8 @@ EOM
my $groupList = OVH::Bastion::get_group_list(cache => 1, groupType => 'key')->value;
my $realmList = OVH::Bastion::get_realm_list(cache => 1)->value;
my $pluginListRestricted = OVH::Bastion::get_plugin_list(restrictedOnly => 1)->value;
foreach my $i (0 .. $#rules) {
my $i = 0;
while ($i + 1 < $#rules) {
my $re = $rules[$i++];
my $item = $rules[$i++];

Loading…
Cancel
Save