diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -145,28 +145,10 @@ func (f *Forge) InitPB() { } func (f *Forge) InitMachine() { - /* - f.Machine = new(zoopb.Machine) - if err := f.Machine.ConfigLoad(); err != nil { - log.Log(WARN, "zoopb.ConfigLoad() failed", err) - f.Machine.InitWit() - } - */ - if f.Config.Username == "" { usr, _ := user.Current() f.Config.Username = usr.Username } - - /* - if f.Machine.Hostname == "" { - r, err := shell.RunVerbose([]string{"hostname", "-f"}) - if err == nil { - tmp := strings.Join(r.Stdout, "\n") - f.Machine.Hostname = strings.TrimSpace(tmp) - } - } - */ } // only init's the protobuf. intended to not scan or change anything |
