File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,7 @@ func (hc *HostConfig) getBool(i *comm.Item) bool {
6767 return v .(bool )
6868}
6969
70- func (hc * HostConfig ) getName () string {
71- res := hc .GetHost ()
72- if res != "" {
73- return res
74- }
75-
76- return hc .getString (CONFIG_NAME )
77- }
78-
79- func (hc * HostConfig ) GetHost () string { return hc .getString (CONFIG_HOST ) }
80- func (hc * HostConfig ) GetName () string { return hc .getName () }
70+ func (hc * HostConfig ) GetName () string { return hc .getString (CONFIG_NAME ) }
8171func (hc * HostConfig ) GetHostname () string { return hc .getString (CONFIG_HOSTNAME ) }
8272func (hc * HostConfig ) GetSSHHostname () string { return hc .getString (CONFIG_SSH_HOSTNAME ) }
8373func (hc * HostConfig ) GetSSHPort () int { return hc .getInt (CONFIG_SSH_PORT ) }
Original file line number Diff line number Diff line change 4949 "name" ,
5050 comm .REQUIRE_STRING ,
5151 false ,
52- nil ,
52+ func (hc * HostConfig ) interface {} {
53+ return hc .getString (CONFIG_HOST )
54+ },
5355 )
56+
5457 CONFIG_HOSTNAME = itemset .Insert (
5558 "hostname" ,
5659 comm .REQUIRE_STRING ,
You can’t perform that action at this time.
0 commit comments