Upgrading PCF Runtime Config fails with "mapping values are not allowed in this context" error
search cancel

Upgrading PCF Runtime Config fails with "mapping values are not allowed in this context" error

book

Article ID: 293527

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Symptoms:
Updating PCF runtime config to include the FIM Add-on, specifying the path to the fim.yml file fails with "Evaluating runtime config: yaml: line x: mapping values are not allowed in this context".

Environment


Cause

The YAML will consider that lines prefixed with more spaces than the parent key are contained inside it. Moreover, all the lines must be prefixed with the same amount of spaces to belong to the same map. See below a YAML file not following the indentation rules:
releases:
- name: fim
    version: X.X.X
addons:
- name: fim
    jobs:
    - name: fim
      release: fim
      properties: {}
 

Resolution

Make sure the YAML indentation represents relationships between data layers. See below a YAML file following indentation rules:
releases:
- name: fim
  version: X.X.X
addons:
- name: fim
  jobs:
  - name: fim
    release: fim
    properties: {}