Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
[BM / OT] Renaming "user/password" or "private key" credentials breaks Linux config
-
Hi @atripp
As you suggested, I export the json, and when I try to import it.
I have errors:Validation failed: Error converting value "[{"Nom": "Carbon","Version": "2.15.1"},{"Nom": "ActiveDirectoryDsc","Version": "6.2.0"},{"Nom": "ComputerManagementDsc","Version": "9.0.0"},{"Nom": "NetworkingDsc","Version": "9.0.0"}]" to type 'Inedo.Otter.Infrastructure.VariableValueJsonModel'. Path 'roles[2].variables.PSModules', line 2678, position 367.The json line is
"variables": { "PSModules": "[{\u0022Nom\u0022: \u0022Carbon\u0022,\u0022Version\u0022: \u00222.15.1\u0022},{\u0022Nom\u0022: \u0022ActiveDirectoryDsc\u0022,\u0022Version\u0022: \u00226.2.0\u0022},{\u0022Nom\u0022: \u0022ComputerManagementDsc\u0022,\u0022Version\u0022: \u00229.0.0\u0022},{\u0022Nom\u0022: \u0022NetworkingDsc\u0022,\u0022Version\u0022: \u00229.0.0\u0022}]" }Screenshot of the variable

The problem is present for all list type variables I have
Any thoughts ?
-
Hi @philippe-camelio_3885 ,
Looks like this is a bug when severs have list-type configuration variables; we'll get this fixed in an upcoming maintenance release via BM-3944
Otherwise I can't think of a work-around that would be any simpler then editing the impacted servers.
Thank you,
Steve -
@stevedennis said in [BM / OT] Renaming "user/password" or "private key" credentials breaks Linux config:
I can't think of a work-around that would be any simpler then editing the impacted servers.
Thank you.
Do you plan also for OTTER ?Best regards
PhilippeC. -
@philippe-camelio_3885 I just cloned the issue for Otter (OT-509), so should be an easy fix. Maybe this will hlep w/ data sync issues as well!
-
@stevedennis
Yes
-
Hi @philippe-camelio_3885,
I've tried to reproduce this and I think the issue is that your variable is using JSON array notation instead of otterscript. So, it should be:
@(%(Nom:"Carbon",Version:"2.15.1"),...It seems to work for me when I format it that way. Does this help?
-
Hi @gdivis
Thanks for this.
I will try this syntax.Best regards
-
I made a test case,
I can use such variable format instead the json, but the export / import still buggy
Variable :
@(%(Nom:"Carbon",Version:"2.15.1"))Export the variable
{ "roles": [ { "name": "role-test", "variables": { "PowerShellModules": "@(%(Nom: Carbon, Version: 2.15.1))" } } ] }Try to import:

-
@philippe-camelio_3885 thanks! We were looking at BuildMaster. It looks like the issue is in Otter after all. We'll get it fixed via OT-509 soon!
-
@atripp
I thought the fix was for Otter !
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login