44 "fmt"
55
66 "github.com/deis/controller-sdk-go/api"
7- "github.com/deis/controller-sdk-go/config "
7+ "github.com/deis/controller-sdk-go/appsettings "
88)
99
1010func RoutingInfo (appID string ) error {
@@ -14,12 +14,12 @@ func RoutingInfo(appID string) error {
1414 return err
1515 }
1616
17- config , err := config .List (s .Client , appID )
17+ appSettings , err := appsettings .List (s .Client , appID )
1818 if checkAPICompatibility (s .Client , err ) != nil {
1919 return err
2020 }
2121
22- if * config .Routable {
22+ if * appSettings .Routable {
2323 fmt .Println ("Routing is enabled." )
2424 } else {
2525 fmt .Println ("Routing is disabled." )
@@ -38,8 +38,8 @@ func RoutingEnable(appID string) error {
3838 fmt .Printf ("Enabling routing for %s... " , appID )
3939
4040 quit := progress ()
41- configObj := api.Config {Routable : api .NewRoutable ()}
42- _ , err = config .Set (s .Client , appID , configObj )
41+ appSettings := api.AppSettings {Routable : api .NewRoutable ()}
42+ _ , err = appsettings .Set (s .Client , appID , appSettings )
4343
4444 quit <- true
4545 <- quit
@@ -63,9 +63,9 @@ func RoutingDisable(appID string) error {
6363 fmt .Printf ("Disabling routing for %s... " , appID )
6464
6565 quit := progress ()
66- configObj := api.Config {Routable : api .NewRoutable ()}
67- * configObj .Routable = false
68- _ , err = config .Set (s .Client , appID , configObj )
66+ appSettings := api.AppSettings {Routable : api .NewRoutable ()}
67+ * appSettings .Routable = false
68+ _ , err = appsettings .Set (s .Client , appID , appSettings )
6969
7070 quit <- true
7171 <- quit
0 commit comments