Skip to content

Commit 518fc44

Browse files
author
Jordan
committed
added examples + backticked null
1 parent 34be437 commit 518fc44

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
40.2 KB
Loading

articles/operator-service-manager/troubleshoot-cli-common-issues.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,22 @@ There are multiple solutions available.
173173

174174
### CGVs don't match CGS when parameter has null type
175175

176-
Currently, AOSM doesn't support null as a default value in deployParameters schema, which means that the default value null isn't allowed in Configuration Group Schemas either. To work around this issue, the AOSM CLI sets the default value for parameters of type null to be the string "null", which allows an nfdv to publish successfully.
176+
Currently, AOSM doesn't support `null` as a default value in deployParameters schema, which means that the default value `null` isn't allowed in Configuration Group Schemas either. To work around this issue, the AOSM CLI sets the default value for parameters of type null to be the string `"null"`, which allows an nfdv to publish successfully.
177+
178+
When using the portal to create CGVs, your parameter autofills to have `"null"` as its value. If you don't change this value, the Portal shows an error message, saying: "New Configuration Group Value doesn't match the schema - please edit the values.".
179+
180+
![Screenshot of the portal where there is an error message because the CGVs do not match the CGS](media/cgv_error.png)
181+
182+
To fix this error, change `"null"` to `null` in the CGVs.
183+
184+
For example, originally we have the value `"null"`:
185+
186+
```json
187+
"serviceAccount_name": "null",
188+
```
189+
Which must be changed to the value `null`.
190+
191+
```json
192+
"serviceAccount_name": null,
193+
177194

178-
When using the portal to create CGVs, your parameter autofills to have "null" as its value. If you don't change this value, the Portal shows an error message, saying: "New Configuration Group Value doesn't match the schema - please edit the values.". To fix this error, change "null" to null in the CGVs.

0 commit comments

Comments
 (0)