OLD | NEW |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package client | 4 package client |
5 | 5 |
6 import ( | 6 import ( |
7 "fmt" | 7 "fmt" |
8 "path" | 8 "path" |
9 "regexp" | 9 "regexp" |
10 "strings" | 10 "strings" |
11 | 11 |
| 12 "github.com/juju/errors" |
| 13 |
12 "launchpad.net/juju-core/charm" | 14 "launchpad.net/juju-core/charm" |
13 "launchpad.net/juju-core/errors" | |
14 "launchpad.net/juju-core/instance" | 15 "launchpad.net/juju-core/instance" |
15 "launchpad.net/juju-core/juju" | 16 "launchpad.net/juju-core/juju" |
16 "launchpad.net/juju-core/state" | 17 "launchpad.net/juju-core/state" |
17 "launchpad.net/juju-core/state/api" | 18 "launchpad.net/juju-core/state/api" |
18 "launchpad.net/juju-core/state/api/params" | 19 "launchpad.net/juju-core/state/api/params" |
19 "launchpad.net/juju-core/tools" | 20 "launchpad.net/juju-core/tools" |
20 "launchpad.net/juju-core/utils/set" | 21 "launchpad.net/juju-core/utils/set" |
21 ) | 22 ) |
22 | 23 |
23 // FullStatus gives the information needed for juju status over the api | 24 // FullStatus gives the information needed for juju status over the api |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 return | 550 return |
550 } | 551 } |
551 | 552 |
552 func processLife(entity lifer) string { | 553 func processLife(entity lifer) string { |
553 if life := entity.Life(); life != state.Alive { | 554 if life := entity.Life(); life != state.Alive { |
554 // alive is the usual state so omit it by default. | 555 // alive is the usual state so omit it by default. |
555 return life.String() | 556 return life.String() |
556 } | 557 } |
557 return "" | 558 return "" |
558 } | 559 } |
OLD | NEW |