cf-platform-eng / tile-generator

Tools to develop, package, test, and deploy software on Pivotal Cloud Foundry
https://docs.pivotal.io/tiledev/tile-generator.html
Apache License 2.0
87 stars 60 forks source link

Issues with YAML transforming datetime to seconds #308

Open mmanciop opened 5 years ago

mmanciop commented 5 years ago

The following snipped leads to the default value showing up as 16200 (amount of seconds in '04:30') in Ops Manager:

      - name: time
        type: string
        label: Update time
        description: "Time of day when the update is executed (hh:mm format, in UTC)."
        default: '04:30'

Since tile generator strips the surrounding ', " or even type casts like !!str, there is nothing preventing YAML from converting 04:30 to 16200.

cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.