enabled -> enabling (#1090)
This commit is contained in:
parent
ca67be8fca
commit
c7fb6a1428
|
@ -160,7 +160,7 @@ func InstallItem(name string, obtype string, force bool) {
|
||||||
}
|
}
|
||||||
item, err = cwhub.EnableItem(csConfig.Hub, item)
|
item, err = cwhub.EnableItem(csConfig.Hub, item)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("error while enabled %s : %v.", item.Name, err)
|
log.Fatalf("error while enabling %s : %v.", item.Name, err)
|
||||||
}
|
}
|
||||||
cwhub.AddItem(obtype, item)
|
cwhub.AddItem(obtype, item)
|
||||||
log.Infof("Enabled %s", item.Name)
|
log.Infof("Enabled %s", item.Name)
|
||||||
|
@ -528,7 +528,7 @@ func silenceInstallItem(name string, obtype string) (string, error) {
|
||||||
}
|
}
|
||||||
it, err = cwhub.EnableItem(csConfig.Hub, it)
|
it, err = cwhub.EnableItem(csConfig.Hub, it)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("error while enabled %s : %v", it.Name, err)
|
return "", fmt.Errorf("error while enabling %s : %v", it.Name, err)
|
||||||
}
|
}
|
||||||
if err := cwhub.AddItem(obtype, it); err != nil {
|
if err := cwhub.AddItem(obtype, it); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
|
@ -208,7 +208,7 @@ func testInstallItem(cfg *csconfig.Hub, t *testing.T, item Item) {
|
||||||
|
|
||||||
item, err = EnableItem(cfg, item)
|
item, err = EnableItem(cfg, item)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("error while enabled %s : %v.", item.Name, err)
|
t.Fatalf("error while enabling %s : %v.", item.Name, err)
|
||||||
}
|
}
|
||||||
if err, _ := LocalSync(cfg); err != nil {
|
if err, _ := LocalSync(cfg); err != nil {
|
||||||
t.Fatalf("taint: failed to run localSync : %s", err)
|
t.Fatalf("taint: failed to run localSync : %s", err)
|
||||||
|
|
Loading…
Reference in a new issue