@@ -499,7 +499,7 @@ public function editPackage($package, array $vars = null)
499499 */
500500 public function suspendService ($ package , $ service , $ parent_package = null , $ parent_service = null )
501501 {
502- return $ this ->performServiceAction ($ service , 'StopServer ' , 'upcloud|suspend ' );
502+ return $ this ->performServiceAction ($ service , 'stopServer ' , 'upcloud|suspend ' );
503503 }
504504
505505 /**
@@ -513,7 +513,7 @@ public function suspendService($package, $service, $parent_package = null, $pare
513513 */
514514 public function unsuspendService ($ package , $ service , $ parent_package = null , $ parent_service = null )
515515 {
516- return $ this ->performServiceAction ($ service , 'StartServer ' , 'upcloud|unsuspend ' );
516+ return $ this ->performServiceAction ($ service , 'startServer ' , 'upcloud|unsuspend ' );
517517 }
518518
519519 /**
@@ -527,15 +527,15 @@ public function unsuspendService($package, $service, $parent_package = null, $pa
527527 */
528528 public function cancelService ($ package , $ service , $ parent_package = null , $ parent_service = null )
529529 {
530- return $ this ->performServiceAction ($ service , 'DeleteServerAndStorage ' , 'upcloud|cancel ' , '204 ' );
530+ return $ this ->performServiceAction ($ service , 'deleteServerAndStorage ' , 'upcloud|cancel ' , '204 ' );
531531 }
532532
533533 /**
534534 * Performs a generic service action (start, stop, delete) via the API.
535535 * Logs the action and sets errors if the API call fails.
536536 *
537537 * @param stdClass $service The service object
538- * @param string $actionName The API method name to call (e.g., 'StopServer ')
538+ * @param string $actionName The API method name to call (e.g., 'stopServer ')
539539 * @param string $logTag The tag to use for logging
540540 * @param string|null $expectedResponseCode The expected HTTP response code for success (optional)
541541 * @return null Returns null on completion (errors are set via Input component)
0 commit comments