Skip to content

Commit 0a91e18

Browse files
committed
VirtualMachinePropertySet: disable 'paused'
fixes #590
1 parent 790086b commit 0a91e18

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/Vspheredb/DbObject/VirtualMachine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class VirtualMachine extends BaseDbObject
8080
'runtime.powerState' => 'runtime_power_state',
8181
'runtime.connectionState' => 'connection_state',
8282
'runtime.onlineStandby' => 'online_standby',
83-
'runtime.paused' => 'paused',
83+
'runtime.paused' => 'paused', // 6.0
8484
'guest.guestState' => 'guest_state',
8585
'guest.toolsRunningStatus' => 'guest_tools_running_status',
8686
'guest.toolsVersion' => 'guest_tools_version',

library/Vspheredb/Polling/PropertySet/VirtualMachinePropertySet.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public static function create()
2626
'runtime.powerState',
2727
'runtime.connectionState',
2828
'runtime.onlineStandby',
29-
'runtime.paused',
29+
// paused is available since v6.0, disabled for now. We need to pass the ESXi/vCenter version,
30+
// to ::create(), to be able to ship conditional PropertySets
31+
// 'runtime.paused',
3032
'guest.guestState',
3133
'guest.toolsRunningStatus',
3234
'guest.toolsVersion',

0 commit comments

Comments
 (0)