@@ -32,7 +32,7 @@ import (
32
32
)
33
33
34
34
func ExampleResourcePool_Owner () {
35
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
35
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
36
36
finder := find .NewFinder (c )
37
37
38
38
for _ , name := range []string {"DC0_H0_VM0" , "DC0_C0_RP0_VM0" } {
@@ -62,7 +62,7 @@ func ExampleResourcePool_Owner() {
62
62
}
63
63
64
64
func ExampleVirtualMachine_HostSystem () {
65
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
65
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
66
66
vm , err := find .NewFinder (c ).VirtualMachine (ctx , "DC0_H0_VM0" )
67
67
if err != nil {
68
68
return err
@@ -86,7 +86,7 @@ func ExampleVirtualMachine_HostSystem() {
86
86
}
87
87
88
88
func ExampleVirtualMachine_Clone () {
89
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
89
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
90
90
finder := find .NewFinder (c )
91
91
dc , err := finder .Datacenter (ctx , "DC0" )
92
92
if err != nil {
@@ -133,7 +133,7 @@ func ExampleVirtualMachine_Clone() {
133
133
}
134
134
135
135
func ExampleVirtualMachine_Reconfigure () {
136
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
136
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
137
137
vm , err := find .NewFinder (c ).VirtualMachine (ctx , "DC0_H0_VM0" )
138
138
if err != nil {
139
139
return err
@@ -168,7 +168,7 @@ func ExampleCommon_Destroy() {
168
168
model := simulator .VPX ()
169
169
model .Datastore = 2
170
170
171
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
171
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
172
172
// Change to "LocalDS_0" will cause ResourceInUse error,
173
173
// as simulator VMs created by the VPX model use "LocalDS_0".
174
174
ds , err := find .NewFinder (c ).Datastore (ctx , "LocalDS_1" )
@@ -192,7 +192,7 @@ func ExampleCommon_Destroy() {
192
192
}
193
193
194
194
func ExampleCustomFieldsManager_Set () {
195
- simulator .Example (func (ctx context.Context , c * vim25.Client ) error {
195
+ simulator .Run (func (ctx context.Context , c * vim25.Client ) error {
196
196
m , err := object .GetCustomFieldsManager (c )
197
197
if err != nil {
198
198
return err
0 commit comments