Project

General

Profile

Actions

Bug #5057

closed

generated promises are wrong if a variable is not defined for all values

Added by Vincent MEMBRÉ almost 10 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
1
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

userManagement 3.0 Technique pose a problem as there is some mupltiple variable that can be empty.

Generated promises are not correct

I want to configure 3 users (user1, user2, user3) with user1 and user 3 respectively in group1 and group3 and user2 with default group.

The resulting promises will ok for user1, but user2 will be in group3 and user3 will use default group.

bundle agent check_usergroup_user_parameters
{

  vars:

    "usergroup_user_login[1]" string => "user1";
    "usergroup_user_login[2]" string => "user2";
    "usergroup_user_login[3]" string => "user3";

    "usergroup_user_groupname[1]" string => "group1";
    "usergroup_user_groupname[2]" string => "group3";

It should generate for user3

    "usergroup_user_groupname[3]" string => "group3";

and nothing for user2

This was detected in 2.10 and may affect more than Technique.

Actions

Also available in: Atom PDF