File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1116,6 +1116,16 @@ load test_helper
1116
1116
run govc object.collect -s vm/DC0_H0_VM0 guest.ipAddress
1117
1117
assert_success 10.0.0.43
1118
1118
1119
+ run govc object.collect -s vm/DC0_H0_VM0 summary.guest.ipAddress
1120
+ assert_success 10.0.0.43
1121
+
1122
+ run govc object.collect -s vm/DC0_H0_VM0 summary.guest.hostName
1123
+ assert_success windoze
1124
+
1125
+ run govc vm.info DC0_H0_VM0
1126
+ assert_success
1127
+ assert_matches 10.0.0.43
1128
+
1119
1129
run govc object.collect -s vm/DC0_H0_VM0 guest.hostName
1120
1130
assert_success windoze
1121
1131
Original file line number Diff line number Diff line change @@ -2029,9 +2029,11 @@ func (vm *VirtualMachine) customize(ctx *Context) {
2029
2029
}
2030
2030
if hostname != "" {
2031
2031
changes = append (changes , types.PropertyChange {Name : "guest.hostName" , Val : hostname })
2032
+ changes = append (changes , types.PropertyChange {Name : "summary.guest.hostName" , Val : hostname })
2032
2033
}
2033
2034
if address != "" {
2034
2035
changes = append (changes , types.PropertyChange {Name : "guest.ipAddress" , Val : address })
2036
+ changes = append (changes , types.PropertyChange {Name : "summary.guest.ipAddress" , Val : address })
2035
2037
}
2036
2038
2037
2039
vm .imc = nil
You can’t perform that action at this time.
0 commit comments