1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 23:48:09 +00:00

ros list shows all the active services and any cache available updates

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-03 14:02:44 +10:00
parent 23e51e3b8d
commit 8d941162d8
9 changed files with 378 additions and 122 deletions

View File

@@ -328,7 +328,8 @@ func isCompose(content string) bool {
return strings.HasPrefix(content, "#compose\n")
}
func composeToCloudConfig(bytes []byte) ([]byte, error) {
//TODO: move to config?
func ComposeToCloudConfig(bytes []byte) ([]byte, error) {
compose := make(map[interface{}]interface{})
err := yaml.Unmarshal(bytes, &compose)
if err != nil {