File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ var convertCmd = &cobra.Command{
276
276
return validateCobraArgs (cmd , args )
277
277
},
278
278
Run : func (cmd * cobra.Command , args []string ) {
279
+ course .ParseEnv = false
279
280
newCourse , err := course .OpenCourseFile (courseFile , courseSchema )
280
281
if err != nil {
281
282
color .Red (err .Error ())
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import (
34
34
35
35
var (
36
36
SchemaValidationError error = errors .New ("Course file has schema validation errors" )
37
+ ParseEnv bool = true
37
38
)
38
39
39
40
// FileV2 is the heart of reckoner, it contains the definitions of the releases to be installed
@@ -641,6 +642,9 @@ func parseSecrets(courseData []byte) error {
641
642
}
642
643
643
644
func parseEnv (data string ) (string , error ) {
645
+ if ! ParseEnv {
646
+ return data , nil
647
+ }
644
648
dataWithEnv := os .Expand (data , func (key string ) string {
645
649
if key == "$" {
646
650
return "$"
You can’t perform that action at this time.
0 commit comments