Skip to content

Commit

Permalink
Create cAdvisor client without querying machine information.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchen1107 committed Jul 24, 2014
1 parent 739142e commit 80f1966
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ func NewClient(URL string) (*Client, error) {
"api/v1.0",
}, "/"),
}
_, err := c.MachineInfo()
if err != nil {
return nil, err
}
return c, nil
}

Expand All @@ -54,6 +50,7 @@ func (self *Client) MachineInfo() (minfo *info.MachineInfo, err error) {
return
}
minfo = ret

return
}

Expand Down

0 comments on commit 80f1966

Please sign in to comment.