Skip to content

Commit

Permalink
Merge branch 'master' of github.com:superfly/flyctl
Browse files Browse the repository at this point in the history
  • Loading branch information
tqbf committed Dec 3, 2020
2 parents d11ba5a + 9ed4df6 commit 08a97dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/resource_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (c *Client) GetAppStatus(appName string, showCompleted bool) (*AppStatus, e
canary
region
restarts
privateIP
checks {
status
}
Expand Down Expand Up @@ -81,6 +82,7 @@ func (c *Client) GetAllocationStatus(appName string, allocID string, logLimit in
canary
region
restarts
privateIP
checks {
status
output
Expand Down
1 change: 1 addition & 0 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ type AllocationStatus struct {
WarningCheckCount int
CriticalCheckCount int
Transitioning bool
PrivateIP string
RecentLogs []LogEntry
}

Expand Down
3 changes: 2 additions & 1 deletion cmd/presenters/allocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (p *Allocations) APIStruct() interface{} {
}

func (p *Allocations) FieldNames() []string {
return []string{"ID", "Version", "Region", "Desired", "Status", "Health Checks", "Restarts", "Created"}
return []string{"ID", "Version", "Region", "Desired", "Status", "Health Checks", "Restarts", "Private IP", "Created"}
}

func (p *Allocations) Records() []map[string]string {
Expand Down Expand Up @@ -50,6 +50,7 @@ func (p *Allocations) Records() []map[string]string {
"Created": FormatRelativeTime(alloc.CreatedAt),
"Health Checks": FormatHealthChecksSummary(alloc),
"Restarts": strconv.Itoa(alloc.Restarts),
"Private IP": alloc.PrivateIP,
})
}

Expand Down
1 change: 0 additions & 1 deletion cmd/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func runSetParamsOnly(commandContext *cmdctx.CmdContext) error {

func actualScale(commandContext *cmdctx.CmdContext, balanceRegions bool, setParamsOnly bool) error {
currentcfg, err := commandContext.Client.API().AppAutoscalingConfig(commandContext.AppName)

if err != nil {
return err
}
Expand Down

0 comments on commit 08a97dd

Please sign in to comment.