~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to state/unit.go

[r=wallyworld] Add container support to force-machine

The deploy --force-machine option now supports containers,
either deploying to existing containers or creating new
ones on nominated machines.

Example syntax:

 juju deploy mysql --force-machine 23
 juju deploy mysql --force-machine 24/lxc/3
 juju deploy mysql --force-machine lxc:25

The last example creates a new lxc container on
machine 25.

The add-machine syntax has been tweaked to remove the
leading "/" from the container arg.

https://codereview.appspot.com/10777044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        return u.doc.Service
137
137
}
138
138
 
 
139
// Series returns the deployed charm's series.
 
140
func (u *Unit) Series() string {
 
141
        return u.doc.Series
 
142
}
 
143
 
139
144
// String returns the unit as string.
140
145
func (u *Unit) String() string {
141
146
        return u.doc.Name