diff --git a/client/restarts_test.go b/client/restarts_test.go index 79e4d2a56..4c84193c5 100644 --- a/client/restarts_test.go +++ b/client/restarts_test.go @@ -44,8 +44,8 @@ func TestClient_RestartTracker_ModeDelay(t *testing.T) { if !actual { t.Fail() } - if !(when > p.Delay && when < p.Interval) { - t.Fatalf("NextRestart() returned %v; want less than %v and more than %v", when, p.Interval, p.Delay) + if !(when > p.Delay && when <= p.Interval) { + t.Fatalf("NextRestart() returned %v; want > %v and <= %v", when, p.Delay, p.Interval) } } } diff --git a/command/agent_info.go b/command/agent_info.go index a36d83539..98231df9f 100644 --- a/command/agent_info.go +++ b/command/agent_info.go @@ -2,6 +2,7 @@ package command import ( "fmt" + "sort" "strings" ) @@ -53,14 +54,28 @@ func (c *AgentInfoCommand) Run(args []string) int { return 1 } + // Sort and output agent info var stats map[string]interface{} stats, _ = info["stats"] + statsKeys := make([]string, 0, len(stats)) + for key := range stats { + statsKeys = append(statsKeys, key) + } + sort.Strings(statsKeys) - for section, data := range stats { - c.Ui.Output(section) - d, _ := data.(map[string]interface{}) - for k, v := range d { - c.Ui.Output(fmt.Sprintf(" %s = %v", k, v)) + for _, key := range statsKeys { + c.Ui.Output(key) + statsData, _ := stats[key].(map[string]interface{}) + statsDataKeys := make([]string, len(statsData)) + i := 0 + for key := range statsData { + statsDataKeys[i] = key + i++ + } + sort.Strings(statsDataKeys) + + for _, key := range statsDataKeys { + c.Ui.Output(fmt.Sprintf(" %s = %v", key, statsData[key])) } } diff --git a/website/source/assets/stylesheets/_footer.scss b/website/source/assets/stylesheets/_footer.scss index 468939219..46060f53e 100644 --- a/website/source/assets/stylesheets/_footer.scss +++ b/website/source/assets/stylesheets/_footer.scss @@ -53,10 +53,8 @@ body.page-sub{ &:hover{ svg{ - &.svg-by{ - line{ - stroke: $green-dark; - } + .svg-bg-line{ + fill: $green-dark; } } } @@ -95,6 +93,14 @@ body.page-sub{ @include transition(all 300ms ease-in); } } + + .svg-bg-line{ + @include transition(all 300ms ease-in); + + &:hover{ + @include transition(all 300ms ease-in); + } + } } } } diff --git a/website/source/assets/stylesheets/_header.scss b/website/source/assets/stylesheets/_header.scss index 5bca1464a..e47db98c5 100755 --- a/website/source/assets/stylesheets/_header.scss +++ b/website/source/assets/stylesheets/_header.scss @@ -22,14 +22,14 @@ .by{ &:hover{ svg{ - line{ - stroke: $green-dark; + .svg-bg-line{ + fill: $green-dark; } } } } } - + .buttons{ margin-top: 2px; //baseline everything diff --git a/website/source/assets/stylesheets/hashicorp-shared/_hashicorp-header.scss b/website/source/assets/stylesheets/hashicorp-shared/_hashicorp-header.scss index c9bc593b6..8ab6d99db 100755 --- a/website/source/assets/stylesheets/hashicorp-shared/_hashicorp-header.scss +++ b/website/source/assets/stylesheets/hashicorp-shared/_hashicorp-header.scss @@ -26,9 +26,6 @@ polygon{ fill: white; } - line{ - stroke: white; - } } } } @@ -131,8 +128,7 @@ @include transition(all 300ms ease-in); } } - line{ - stroke: black; + .svg-bg-line{ @include transition(all 300ms ease-in); &:hover{ diff --git a/website/source/layouts/svg/_svg-by-hashicorp.erb b/website/source/layouts/svg/_svg-by-hashicorp.erb index d89929590..607d16b1e 100644 --- a/website/source/layouts/svg/_svg-by-hashicorp.erb +++ b/website/source/layouts/svg/_svg-by-hashicorp.erb @@ -1,18 +1,17 @@ - - + - - - - - - - - - + + + + + + + + + + + + + - -