浏览代码

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

Maximiliano Schvindt 6 年之前
父节点
当前提交
96018f913c
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);