Skip to content

Commit 73a541b

Browse files
committed
Move routable flag from config to appsettings
1 parent 4df89d2 commit 73a541b

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

cmd/routing.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
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

1010
func 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

glide.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ import:
1616
- package: github.com/olekukonko/tablewriter
1717
- package: github.com/arschles/assert
1818
- package: github.com/deis/controller-sdk-go
19-
version: d1ad81825bf99c94fda39855de90ac59e101def7
19+
version: a28a40b255a81d59a3e071ce7203d845094bdd6c

0 commit comments

Comments
 (0)