Actions
Bug #16817
closedHereString are not generated properly
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Technique editor
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
To do
Regression:
Description
We can now define HereString type in the technique editor, but the resulting file is using ` ... `
instead of ' ... '
Moreover, when using one, on a windows node, it should not break line afterward.
What we currently have generated:
$local_classes = Merge-ClassContext $local_classes $(Dsc-Report -Tag "Creating user bobouioui" -ResourceName "User" -ScriptBlock @` $name = 'bobouioui' $secpasswd = ConvertTo-SecureString 'PlainTextPassword' -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ($Name, $secpasswd) $Ensure = 'Present' $UserName = $name $Password = $mycreds $table = @{} $table.Add(`"Ensure`", $Ensure) $table.Add(`"UserName`", $UserName) $table.Add(`"Password`", $Password) $table `@ -componentName "DSC resource" -reportId $reportId -techniqueName $techniqueName -auditOnly:$auditOnly).get_item("classes") $class = "linux"
What we want:
$local_classes = Merge-ClassContext $local_classes $(Dsc-Report -Tag "Creating user bobouioui" -ResourceName "User" -ScriptBlock @' $name = 'bobouioui' $secpasswd = ConvertTo-SecureString 'PlainTextPassword' -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ($Name, $secpasswd) $Ensure = 'Present' $UserName = $name $Password = $mycreds $table = @{} $table.Add("Ensure", $Ensure) $table.Add("UserName", $UserName) $table.Add("Password", $Password) $table '@ -componentName "DSC resource" -reportId $reportId -techniqueName $techniqueName -auditOnly:$auditOnly).get_item("classes") $class = "linux"
Updated by Vincent MEMBRÉ almost 5 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 5 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2794
Updated by Vincent MEMBRÉ almost 5 years ago
- Status changed from In progress to Pending release
Applied in changeset rudder|ec6dffbc28539cc0ee377d6a88c8262f321fb78b.
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 6.0.4 to 6.0.3
Updated by Alexis Mousset almost 5 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ almost 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.3 which was released today.
Actions