summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorh6w <tudor@tudorholton.com>2017-11-14 10:06:13 +1100
committerGitHub <noreply@github.com>2017-11-14 10:06:13 +1100
commitbd74cfd2733e525b86f92425f8ac0abe71a88269 (patch)
tree42d8e3287fde8201ddad7c5f79929ea5a7a5349a
parent4c639d47106d0e5a272ef4a75eeaf7cb3a4a9d05 (diff)
parentc84bf6b462cc43854fa7e04ce0fa71cadd4eadc7 (diff)
downloadphpvirtualbox-bd74cfd2733e525b86f92425f8ac0abe71a88269.zip
phpvirtualbox-bd74cfd2733e525b86f92425f8ac0abe71a88269.tar.gz
phpvirtualbox-bd74cfd2733e525b86f92425f8ac0abe71a88269.tar.bz2
Merge pull request #72 from tom077/develop-SOAPfix
4 SOAP functions fixed
-rw-r--r--endpoints/lib/vboxServiceWrappers.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/endpoints/lib/vboxServiceWrappers.php b/endpoints/lib/vboxServiceWrappers.php
index b9ff86b..e9fc884 100644
--- a/endpoints/lib/vboxServiceWrappers.php
+++ b/endpoints/lib/vboxServiceWrappers.php
@@ -1966,7 +1966,7 @@ class IMachine extends VBox_ManagedObject
$request->name = $arg_name;
$request->controllerPort = $arg_controllerPort;
$request->device = $arg_device;
- $request->temporaryEject = $arg_temporaryEject;
+ $request->temporaryEject = $arg_temporaryEject === null ? false : $arg_temporaryEject;
$response = $this->connection->__soapCall('IMachine_temporaryEjectDevice', array((array)$request));
return ;
}
@@ -1978,7 +1978,7 @@ class IMachine extends VBox_ManagedObject
$request->name = $arg_name;
$request->controllerPort = $arg_controllerPort;
$request->device = $arg_device;
- $request->nonRotational = $arg_nonRotational;
+ $request->nonRotational = $arg_nonRotational === null ? false : $arg_nonRotational;
$response = $this->connection->__soapCall('IMachine_nonRotationalDevice', array((array)$request));
return ;
}
@@ -2002,7 +2002,7 @@ class IMachine extends VBox_ManagedObject
$request->name = $arg_name;
$request->controllerPort = $arg_controllerPort;
$request->device = $arg_device;
- $request->hotPluggable = $arg_hotPluggable;
+ $request->hotPluggable = $arg_hotPluggable === null ? false : $arg_hotPluggable;
$response = $this->connection->__soapCall('IMachine_setHotPluggableForDevice', array((array)$request));
return ;
}
@@ -2623,7 +2623,7 @@ class IMachine extends VBox_ManagedObject
$request->_this = $this->handle;
$request->name = $arg_name;
$request->description = $arg_description;
- $request->pause = $arg_pause;
+ $request->pause = $arg_pause === null ? true : $arg_pause;
$response = $this->connection->__soapCall('IMachine_takeSnapshot', array((array)$request));
return array(new IProgress ($this->connection, $response->returnval), (string)$response->id);
}