Преглед изворни кода

Remove duplicate policy operations

Daniel Vincze пре 4 година
родитељ
комит
587645858d
2 измењених фајлова са 0 додато и 22 уклоњено
  1. 0 11
      coriolis/policies/migrations.py
  2. 0 11
      coriolis/policies/replicas.py

+ 0 - 11
coriolis/policies/migrations.py

@@ -49,17 +49,6 @@ MIGRATIONS_POLICY_DEFAULT_RULES = [
             }
         ]
     ),
-    policy.DocumentedRuleDefault(
-        get_migrations_policy_label('show_execution'),
-        MIGRATIONS_POLICY_DEFAULT_RULE,
-        "Show details for a migration (including tasks execution)",
-        [
-            {
-                "path": "/migration/{migration_id}",
-                "method": "GET"
-            }
-        ]
-    ),
     # TODO(aznashwan): migration actions should ideally be
     # declared in a separate module
     policy.DocumentedRuleDefault(

+ 0 - 11
coriolis/policies/replicas.py

@@ -49,17 +49,6 @@ REPLICAS_POLICY_DEFAULT_RULES = [
             }
         ]
     ),
-    policy.DocumentedRuleDefault(
-        get_replicas_policy_label('show_executions'),
-        REPLICAS_POLICY_DEFAULT_RULE,
-        "Show details for Replica (including tasks executions)",
-        [
-            {
-                "path": "/replicas/{replica_id}",
-                "method": "GET"
-            }
-        ]
-    ),
     # TODO(aznashwan): replica actions should ideally be
     # declared in a separate module
     policy.DocumentedRuleDefault(