cdist preos fails if parameter -l 3 is given #17

Closed
opened 2021-11-20 11:24:49 +00:00 by ungleich-gitea · 5 comments

Hi there,
it seems to me there is an issue with cdist preos.
If I run cdist preos debian ... -l 3 it fails with cdist: error: unrecognized arguments: -d.

The reason is in file code line 25, where -d is appended to cdist_params in conjunction with line 180 where cdist config is called with this parameter, but -d is not a valid parameter according to the manual (cdist config --help).

If I remove the -d the cdist config statements works without an error.

I've encountered this issue with cdist verison 6.7.0 and 6.9.0.

Proposed solution: Remove -d from line 25 in code

Hi there, \ it seems to me there is an issue with `cdist preos`.\ If I run `cdist preos debian ... -l 3` it fails with `cdist: error: unrecognized arguments: -d`. The reason is in file [code](cdist/preos/debootstrap/files/code) line 25, where `-d` is appended to `cdist_params` in conjunction with line 180 where `cdist config` is called with this parameter, but `-d` is not a valid parameter according to the manual (`cdist config --help`). If I remove the `-d` the `cdist config` statements works without an error. I've encountered this issue with cdist verison 6.7.0 and 6.9.0. Proposed solution: Remove `-d` from line 25 in [code](cdist/preos/debootstrap/files/code)
Author
Owner

mentioned in commit cce470b556

mentioned in commit cce470b556ae9178e90eaa0d2761f6d4b21d6a0f
Author
Owner

If tested commit c8195483 on branch bugfix/preos-debug. It seems to solve the problem.

If tested commit c8195483 on branch bugfix/preos-debug. It seems to solve the problem.
Author
Owner
@toto Can you test https://code.ungleich.ch/ungleich-public/cdist/-/merge_requests/970?
Author
Owner

mentioned in merge request !970

mentioned in merge request !970
Author
Owner

mentioned in commit c819548343

mentioned in commit c819548343ad7bb24d023f94a32575e1b2520328
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#17
No description provided.