Skip to content

Commit

Permalink
Use ReconfigVM_Task() instead of Reconfigure() in order to stay
Browse files Browse the repository at this point in the history
compliant with the vSphere API documentation
  • Loading branch information
dnaeon committed Apr 27, 2015
1 parent f7ddea8 commit 03c1cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pvc/widget/vnc.py
Expand Up @@ -143,7 +143,7 @@ def _configure_vnc_options(self, enabled, port, password):
]
spec = pyVmomi.vim.VirtualMachineConfigSpec(extraConfig=options)

task = self.obj.Reconfigure(spec=spec)
task = self.obj.ReconfigVM_Task(spec=spec)
gauge = pvc.widget.gauge.TaskGauge(
title=self.title,
text='Configuring VNC Settings',
Expand Down Expand Up @@ -236,7 +236,7 @@ def disable_vnc(self):
]
spec = pyVmomi.vim.VirtualMachineConfigSpec(extraConfig=options)

task = self.obj.Reconfigure(spec=spec)
task = self.obj.ReconfigVM_Task(spec=spec)
gauge = pvc.widget.gauge.TaskGauge(
dialog=self.dialog,
task=task,
Expand Down

0 comments on commit 03c1cbd

Please sign in to comment.