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

Unified Diff: cmd/juju/destroyunit.go

Issue 75600044: Preliminary support for basic juju id commands:
Patch Set: Preliminary support for basic juju id commands: Created 11 years, 7 months 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/destroyservice.go ('k') | cmd/juju/endpoint.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/destroyunit.go
=== modified file 'cmd/juju/destroyunit.go'
--- cmd/juju/destroyunit.go 2013-12-04 15:34:47 +0000
+++ cmd/juju/destroyunit.go 2014-04-01 04:53:43 +0000
@@ -8,13 +8,14 @@
"fmt"
"launchpad.net/juju-core/cmd"
+ "launchpad.net/juju-core/cmd/envcmd"
"launchpad.net/juju-core/juju"
"launchpad.net/juju-core/names"
)
// DestroyUnitCommand is responsible for destroying service units.
type DestroyUnitCommand struct {
- cmd.EnvCommandBase
+ envcmd.EnvCommandBase
UnitNames []string
}
@@ -28,6 +29,10 @@
}
func (c *DestroyUnitCommand) Init(args []string) error {
+ err := c.EnvCommandBase.Init()
+ if err != nil {
+ return err
+ }
c.UnitNames = args
if len(c.UnitNames) == 0 {
return errors.New("no units specified")
« no previous file with comments | « cmd/juju/destroyservice.go ('k') | cmd/juju/endpoint.go » ('j') | no next file with comments »

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