mirror of
https://github.com/rancher/os.git
synced 2025-09-17 15:40:47 +00:00
ros config get
shows default values
This commit is contained in:
6
vendor/github.com/cloudfoundry-incubator/candiedyaml/README.md
generated
vendored
6
vendor/github.com/cloudfoundry-incubator/candiedyaml/README.md
generated
vendored
@@ -25,7 +25,8 @@ func main() {
|
||||
println("File does not exist:", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
defer file.Close()
|
||||
|
||||
document := new(interface{})
|
||||
decoder := candiedyaml.NewDecoder(file)
|
||||
err = decoder.Decode(document)
|
||||
@@ -41,7 +42,8 @@ func main() {
|
||||
println("Failed to open file for writing:", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
defer fileToWrite.Close()
|
||||
|
||||
encoder := candiedyaml.NewEncoder(fileToWrite)
|
||||
err = encoder.Encode(document)
|
||||
|
||||
|
Reference in New Issue
Block a user