CdistObject.parameters does not work with required_multiple and friends #290

Closed
opened 2021-11-20 15:23:31 +00:00 by ungleich-gitea · 0 comments

Created by: asteven

ERROR: Object __user_groups/foobar already exists with conflicting parameters:
.../conf/type/__cbrg_some_type/manifest: {'group': 'sudo'}
.../conf/type/__cbrg_other_type/manifest: {'group': ['sudo']}

.../conf/type/__cbrg_some_type/manifest:

__user_groups foobar --group sudo

.../conf/type/__cbrg_other_type/manifest:

__user_groups foobar --group sudo

The problem is that the fsproperty class that represents the CdistObject.parameters member does not know anything about the parameter beeing a list, but the argument parser in the emulator does.

So, emulator says it's a list, but the cdist object read from disk says it's a string -> boom

*Created by: asteven* ERROR: Object __user_groups/foobar already exists with conflicting parameters: .../conf/type/__cbrg_some_type/manifest: {'group': 'sudo'} .../conf/type/__cbrg_other_type/manifest: {'group': ['sudo']} # .../conf/type/__cbrg_some_type/manifest: __user_groups foobar --group sudo # .../conf/type/__cbrg_other_type/manifest: __user_groups foobar --group sudo The problem is that the fsproperty class that represents the CdistObject.parameters member does not know anything about the parameter beeing a list, but the argument parser in the emulator does. So, emulator says it's a list, but the cdist object read from disk says it's a string -> boom
ungleich-gitea added the
bugfix
label 2021-11-20 15:23:31 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#290
No description provided.