Quellcode durchsuchen

Ref #13 - Updated the transitions in the services client active/disable

Maximiliano Schvindt vor 6 Jahren
Ursprung
Commit
96018f913c
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/Swagger/Client/Base/Services.php

+ 2 - 2
src/Swagger/Client/Base/Services.php

@@ -329,7 +329,7 @@ class Services extends ApiServices
                 $ch = new Checks();
                 $id = $ch->integer($request, "id");
                 $workflow = "administrative_state";
-                $transition = "active_to_suspend";
+                $transition = "suspend";
 
                 $apiInstance->setDisabledTenancy(true);
                 $result = $apiInstance->getById($id);
@@ -369,7 +369,7 @@ class Services extends ApiServices
                 $ch = new Checks();
                 $id = $ch->integer($request, "id");
                 $workflow = "administrative_state";
-                $transition = "suspend_to_active";
+                $transition = "active";
 
                 $apiInstance->setDisabledTenancy(true);
                 $result = $apiInstance->getById($id);