Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
41b9dfcb1c | ||
|
ef4c3483b6 | ||
|
4bdf633075 | ||
|
c9fc718e18 | ||
|
4461b3d33d | ||
|
c6a1412f6b |
@@ -14,7 +14,7 @@ import (
|
|||||||
"github.com/coreos/coreos-cloudinit/system"
|
"github.com/coreos/coreos-cloudinit/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "0.7.5"
|
const version = "0.7.6"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var printVersion bool
|
var printVersion bool
|
||||||
|
@@ -12,7 +12,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
locksmithUnit = "locksmithd.service"
|
locksmithUnit = "locksmithd.service"
|
||||||
|
updateEngineUnit = "update-engine.service"
|
||||||
)
|
)
|
||||||
|
|
||||||
// updateOption represents a configurable update option, which, if set, will be
|
// updateOption represents a configurable update option, which, if set, will be
|
||||||
@@ -36,7 +37,6 @@ var updateOptions = []*updateOption{
|
|||||||
&updateOption{
|
&updateOption{
|
||||||
key: "group",
|
key: "group",
|
||||||
prefix: "GROUP=",
|
prefix: "GROUP=",
|
||||||
valid: []string{"master", "beta", "alpha", "stable"},
|
|
||||||
},
|
},
|
||||||
&updateOption{
|
&updateOption{
|
||||||
key: "server",
|
key: "server",
|
||||||
@@ -155,7 +155,7 @@ func (uc UpdateConfig) Units(root string) ([]system.Unit, error) {
|
|||||||
}
|
}
|
||||||
if rue {
|
if rue {
|
||||||
ue := system.Unit{
|
ue := system.Unit{
|
||||||
Name: "update-engine",
|
Name: updateEngineUnit,
|
||||||
Command: "restart",
|
Command: "restart",
|
||||||
}
|
}
|
||||||
units = append(units, ue)
|
units = append(units, ue)
|
||||||
|
@@ -114,8 +114,8 @@ SERVER=http://foo.com`
|
|||||||
t.Errorf("unexpected number of files returned from UpdateConfig: want 1, got %d", len(uu))
|
t.Errorf("unexpected number of files returned from UpdateConfig: want 1, got %d", len(uu))
|
||||||
} else {
|
} else {
|
||||||
unit := uu[0]
|
unit := uu[0]
|
||||||
if unit.Name != "update-engine" {
|
if unit.Name != "update-engine.service" {
|
||||||
t.Errorf("bad name for generated unit: want update-engine, got %s", unit.Name)
|
t.Errorf("bad name for generated unit: want update-engine.service, got %s", unit.Name)
|
||||||
}
|
}
|
||||||
if unit.Command != "restart" {
|
if unit.Command != "restart" {
|
||||||
t.Errorf("bad command for generated unit: want restart, got %s", unit.Command)
|
t.Errorf("bad command for generated unit: want restart, got %s", unit.Command)
|
||||||
|
Reference in New Issue
Block a user