Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Unified Diff: cmd/juju/status.go

Issue 7327050: state: Machine.InstanceId returns bool
Patch Set: state: Machine.InstanceId returns bool Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/juju/ssh_test.go ('k') | cmd/jujud/bootstrap_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/status.go
=== modified file 'cmd/juju/status.go'
--- cmd/juju/status.go 2013-01-09 16:13:31 +0000
+++ cmd/juju/status.go 2013-02-18 16:33:11 +0000
@@ -117,13 +117,11 @@
func processMachines(machines map[string]*state.Machine, instances map[state.InstanceId]environs.Instance) (map[string]interface{}, error) {
r := make(map[string]interface{})
for _, m := range machines {
- instid, err := m.InstanceId()
- if err, ok := err.(*state.NotFoundError); ok {
+ instid, ok := m.InstanceId()
+ if !ok {
r[m.Id()] = map[string]interface{}{
"instance-id": "pending",
}
- } else if err != nil {
- return nil, err
} else {
instance, ok := instances[instid]
if !ok {
« no previous file with comments | « cmd/juju/ssh_test.go ('k') | cmd/jujud/bootstrap_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b