Fixed ActionPlanNotFound typo in msg_fmt

The msg_fmt of ActionPlanNotFound was missing an "_" which caused
errors upon trying to format it, so I fixed it.

Change-Id: I515c2097a563f809e319d2e57480fd340b878cef
Closes-Bug: #1538065
This commit is contained in:
Vincent Françoise
2016-01-26 11:24:13 +01:00
parent 982410dd3e
commit 7406a1e713
3 changed files with 87 additions and 71 deletions

View File

@@ -179,7 +179,7 @@ class AuditReferenced(Invalid):
class ActionPlanNotFound(ResourceNotFound): class ActionPlanNotFound(ResourceNotFound):
msg_fmt = _("ActionPlan %(action plan)s could not be found") msg_fmt = _("ActionPlan %(action_plan)s could not be found")
class ActionPlanAlreadyExists(Conflict): class ActionPlanAlreadyExists(Conflict):

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: python-watcher 0.21.1.dev32\n" "Project-Id-Version: python-watcher 0.21.1.dev32\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2016-01-19 17:54+0100\n" "POT-Creation-Date: 2016-01-26 11:26+0100\n"
"PO-Revision-Date: 2015-12-11 15:42+0100\n" "PO-Revision-Date: 2015-12-11 15:42+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n" "Language: fr\n"
@@ -24,25 +24,29 @@ msgstr ""
msgid "Invalid state: %(state)s" msgid "Invalid state: %(state)s"
msgstr "État invalide : %(state)s" msgstr "État invalide : %(state)s"
#: watcher/api/controllers/v1/action_plan.py:418 #: watcher/api/controllers/v1/action_plan.py:420
#, python-format #, python-format
msgid "State transition not allowed: (%(initial_state)s -> %(new_state)s)" msgid "State transition not allowed: (%(initial_state)s -> %(new_state)s)"
msgstr "Transition d'état non autorisée : (%(initial_state)s -> %(new_state)s)" msgstr "Transition d'état non autorisée : (%(initial_state)s -> %(new_state)s)"
#: watcher/api/controllers/v1/audit.py:359
msgid "The audit template UUID or name specified is invalid"
msgstr "Le nom ou UUID de l'audit template est invalide"
#: watcher/api/controllers/v1/types.py:148 #: watcher/api/controllers/v1/types.py:148
#, python-format #, python-format
msgid "%s is not JSON serializable" msgid "%s is not JSON serializable"
msgstr "" msgstr "%s n'est pas sérialisable en JSON"
#: watcher/api/controllers/v1/types.py:184 #: watcher/api/controllers/v1/types.py:184
#, python-format #, python-format
msgid "Wrong type. Expected '%(type)s', got '%(value)s'" msgid "Wrong type. Expected '%(type)s', got '%(value)s'"
msgstr "" msgstr "Type incorrect. '%(type)s' attendu, '%(value)s' obtenu"
#: watcher/api/controllers/v1/types.py:223 #: watcher/api/controllers/v1/types.py:223
#, python-format #, python-format
msgid "'%s' is an internal attribute and can not be updated" msgid "'%s' is an internal attribute and can not be updated"
msgstr "" msgstr "'%s' wat un attribut interne et ne peut pas être modifié"
#: watcher/api/controllers/v1/types.py:227 #: watcher/api/controllers/v1/types.py:227
#, python-format #, python-format
@@ -60,7 +64,7 @@ msgstr "Limit doit être positif"
#: watcher/api/controllers/v1/utils.py:47 #: watcher/api/controllers/v1/utils.py:47
#, python-format #, python-format
msgid "Invalid sort direction: %s. Acceptable values are 'asc' or 'desc'" msgid "Invalid sort direction: %s. Acceptable values are 'asc' or 'desc'"
msgstr "" msgstr "Ordre de tri invalide : %s. Les valeurs acceptées sont 'asc' or 'desc'"
#: watcher/api/controllers/v1/utils.py:57 #: watcher/api/controllers/v1/utils.py:57
#, python-format #, python-format
@@ -69,14 +73,14 @@ msgstr ""
#: watcher/api/middleware/auth_token.py:45 #: watcher/api/middleware/auth_token.py:45
msgid "Cannot compile public API routes" msgid "Cannot compile public API routes"
msgstr "" msgstr "Ne peut pas compiler les chemins d'API publique"
#: watcher/api/middleware/parsable_error.py:52 #: watcher/api/middleware/parsable_error.py:52
#, python-format #, python-format
msgid "ErrorDocumentMiddleware received an invalid status %s" msgid "ErrorDocumentMiddleware received an invalid status %s"
msgstr "" msgstr ""
#: watcher/api/middleware/parsable_error.py:80 #: watcher/api/middleware/parsable_error.py:79
#, python-format #, python-format
msgid "Error parsing HTTP response: %s" msgid "Error parsing HTTP response: %s"
msgstr "" msgstr ""
@@ -85,17 +89,17 @@ msgstr ""
msgid "The target state is not defined" msgid "The target state is not defined"
msgstr "" msgstr ""
#: watcher/applier/workflow_engine/default.py:69 #: watcher/applier/workflow_engine/default.py:126
#, python-format #, python-format
msgid "The WorkFlow Engine has failed to execute the action %s" msgid "The WorkFlow Engine has failed to execute the action %s"
msgstr "Le moteur de workflow a echoué lors de l'éxécution de l'action %s" msgstr "Le moteur de workflow a echoué lors de l'éxécution de l'action %s"
#: watcher/applier/workflow_engine/default.py:77 #: watcher/applier/workflow_engine/default.py:144
#, python-format #, python-format
msgid "Revert action %s" msgid "Revert action %s"
msgstr "Annulation de l'action %s" msgstr "Annulation de l'action %s"
#: watcher/applier/workflow_engine/default.py:83 #: watcher/applier/workflow_engine/default.py:150
msgid "Oops! We need disaster recover plan" msgid "Oops! We need disaster recover plan"
msgstr "Oops! Nous avons besoin d'un plan de reprise d'activité" msgstr "Oops! Nous avons besoin d'un plan de reprise d'activité"
@@ -115,185 +119,178 @@ msgstr "Sert sur 0.0.0.0:%(port)s, accessible à http://127.0.0.1:%(port)s"
msgid "serving on http://%(host)s:%(port)s" msgid "serving on http://%(host)s:%(port)s"
msgstr "Sert sur http://%(host)s:%(port)s" msgstr "Sert sur http://%(host)s:%(port)s"
#: watcher/common/exception.py:56 #: watcher/common/exception.py:51
msgid "An unknown exception occurred" msgid "An unknown exception occurred"
msgstr "" msgstr ""
#: watcher/common/exception.py:77 #: watcher/common/exception.py:71
msgid "Exception in string format operation" msgid "Exception in string format operation"
msgstr "" msgstr ""
#: watcher/common/exception.py:107 #: watcher/common/exception.py:101
msgid "Not authorized" msgid "Not authorized"
msgstr "" msgstr ""
#: watcher/common/exception.py:112 #: watcher/common/exception.py:106
msgid "Operation not permitted" msgid "Operation not permitted"
msgstr "" msgstr ""
#: watcher/common/exception.py:116 #: watcher/common/exception.py:110
msgid "Unacceptable parameters" msgid "Unacceptable parameters"
msgstr "" msgstr ""
#: watcher/common/exception.py:121 #: watcher/common/exception.py:115
#, python-format #, python-format
msgid "The %(name)s %(id)s could not be found" msgid "The %(name)s %(id)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:125 #: watcher/common/exception.py:119
#, fuzzy #, fuzzy
msgid "Conflict" msgid "Conflict"
msgstr "Conflit." msgstr "Conflit"
#: watcher/common/exception.py:130 #: watcher/common/exception.py:124
#, python-format #, python-format
msgid "The %(name)s resource %(id)s could not be found" msgid "The %(name)s resource %(id)s could not be found"
msgstr "" msgstr "La ressource %(name)s / %(id)s est introuvable"
#: watcher/common/exception.py:135 #: watcher/common/exception.py:129
#, python-format #, python-format
msgid "Expected an uuid or int but received %(identity)s" msgid "Expected an uuid or int but received %(identity)s"
msgstr "" msgstr ""
#: watcher/common/exception.py:139 #: watcher/common/exception.py:133
#, python-format #, python-format
msgid "Goal %(goal)s is not defined in Watcher configuration file" msgid "Goal %(goal)s is not defined in Watcher configuration file"
msgstr "" msgstr ""
#: watcher/common/exception.py:145 #: watcher/common/exception.py:139
#, python-format #, python-format
msgid "%(err)s" msgid "%(err)s"
msgstr "" msgstr "%(err)s"
#: watcher/common/exception.py:149 #: watcher/common/exception.py:143
#, python-format #, python-format
msgid "Expected a uuid but received %(uuid)s" msgid "Expected a uuid but received %(uuid)s"
msgstr "" msgstr ""
#: watcher/common/exception.py:153 #: watcher/common/exception.py:147
#, python-format #, python-format
msgid "Expected a logical name but received %(name)s" msgid "Expected a logical name but received %(name)s"
msgstr "" msgstr ""
#: watcher/common/exception.py:157 #: watcher/common/exception.py:151
#, python-format #, python-format
msgid "Expected a logical name or uuid but received %(name)s" msgid "Expected a logical name or uuid but received %(name)s"
msgstr "" msgstr ""
#: watcher/common/exception.py:161 #: watcher/common/exception.py:155
#, python-format #, python-format
msgid "AuditTemplate %(audit_template)s could not be found" msgid "AuditTemplate %(audit_template)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:165 #: watcher/common/exception.py:159
#, python-format #, python-format
msgid "An audit_template with UUID %(uuid)s or name %(name)s already exists" msgid "An audit_template with UUID %(uuid)s or name %(name)s already exists"
msgstr "" msgstr ""
#: watcher/common/exception.py:170 #: watcher/common/exception.py:164
#, python-format #, python-format
msgid "AuditTemplate %(audit_template)s is referenced by one or multiple audit" msgid "AuditTemplate %(audit_template)s is referenced by one or multiple audit"
msgstr "" msgstr ""
#: watcher/common/exception.py:175 #: watcher/common/exception.py:169
#, python-format #, python-format
msgid "Audit %(audit)s could not be found" msgid "Audit %(audit)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:179 #: watcher/common/exception.py:173
#, python-format #, python-format
msgid "An audit with UUID %(uuid)s already exists" msgid "An audit with UUID %(uuid)s already exists"
msgstr "" msgstr ""
#: watcher/common/exception.py:183 #: watcher/common/exception.py:177
#, python-format #, python-format
msgid "Audit %(audit)s is referenced by one or multiple action plans" msgid "Audit %(audit)s is referenced by one or multiple action plans"
msgstr "" msgstr ""
#: watcher/common/exception.py:188 #: watcher/common/exception.py:182
msgid "ActionPlan %(action plan)s could not be found" #, python-format
msgid "ActionPlan %(action_plan)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:192 #: watcher/common/exception.py:186
#, python-format #, python-format
msgid "An action plan with UUID %(uuid)s already exists" msgid "An action plan with UUID %(uuid)s already exists"
msgstr "" msgstr ""
#: watcher/common/exception.py:196 #: watcher/common/exception.py:190
#, python-format #, python-format
msgid "Action Plan %(action_plan)s is referenced by one or multiple actions" msgid "Action Plan %(action_plan)s is referenced by one or multiple actions"
msgstr "" msgstr ""
#: watcher/common/exception.py:201 #: watcher/common/exception.py:195
#, python-format #, python-format
msgid "Action %(action)s could not be found" msgid "Action %(action)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:205 #: watcher/common/exception.py:199
#, python-format #, python-format
msgid "An action with UUID %(uuid)s already exists" msgid "An action with UUID %(uuid)s already exists"
msgstr "" msgstr ""
#: watcher/common/exception.py:209 #: watcher/common/exception.py:203
#, python-format #, python-format
msgid "Action plan %(action_plan)s is referenced by one or multiple goals" msgid "Action plan %(action_plan)s is referenced by one or multiple goals"
msgstr "" msgstr ""
#: watcher/common/exception.py:214 #: watcher/common/exception.py:208
msgid "Filtering actions on both audit and action-plan is prohibited" msgid "Filtering actions on both audit and action-plan is prohibited"
msgstr "" msgstr ""
#: watcher/common/exception.py:223 #: watcher/common/exception.py:217
#, python-format #, python-format
msgid "Couldn't apply patch '%(patch)s'. Reason: %(reason)s" msgid "Couldn't apply patch '%(patch)s'. Reason: %(reason)s"
msgstr "" msgstr ""
#: watcher/common/exception.py:233 #: watcher/common/exception.py:224
msgid "Description must be an instance of str" msgid "Illegal argument"
msgstr "" msgstr ""
#: watcher/common/exception.py:243 #: watcher/common/exception.py:228
msgid "An exception occurred without a description"
msgstr ""
#: watcher/common/exception.py:251
msgid "Description cannot be empty"
msgstr ""
#: watcher/common/exception.py:260
msgid "No such metric" msgid "No such metric"
msgstr "" msgstr ""
#: watcher/common/exception.py:269 #: watcher/common/exception.py:232
msgid "No rows were returned" msgid "No rows were returned"
msgstr "" msgstr ""
#: watcher/common/exception.py:277 #: watcher/common/exception.py:236
msgid "'Keystone API endpoint is missing''" msgid "'Keystone API endpoint is missing''"
msgstr "" msgstr ""
#: watcher/common/exception.py:281 #: watcher/common/exception.py:240
msgid "The list of hypervisor(s) in the cluster is empty" msgid "The list of hypervisor(s) in the cluster is empty"
msgstr "" msgstr ""
#: watcher/common/exception.py:285 #: watcher/common/exception.py:244
msgid "The metrics resource collector is not defined" msgid "The metrics resource collector is not defined"
msgstr "" msgstr ""
#: watcher/common/exception.py:289 #: watcher/common/exception.py:248
msgid "the cluster state is not defined" msgid "the cluster state is not defined"
msgstr "" msgstr ""
#: watcher/common/exception.py:295 #: watcher/common/exception.py:254
#, python-format #, python-format
msgid "The instance '%(name)s' is not found" msgid "The instance '%(name)s' is not found"
msgstr "L'instance '%(name)s' n'a pas été trouvée" msgstr "L'instance '%(name)s' n'a pas été trouvée"
#: watcher/common/exception.py:299 #: watcher/common/exception.py:258
msgid "The hypervisor is not found" msgid "The hypervisor is not found"
msgstr "" msgstr ""
#: watcher/common/exception.py:303 #: watcher/common/exception.py:262
#, fuzzy, python-format #, fuzzy, python-format
msgid "Error loading plugin '%(name)s'" msgid "Error loading plugin '%(name)s'"
msgstr "Erreur lors du chargement du module '%(name)s'" msgstr "Erreur lors du chargement du module '%(name)s'"
@@ -332,7 +329,7 @@ msgstr ""
#: watcher/common/utils.py:53 #: watcher/common/utils.py:53
#, python-format #, python-format
msgid "" msgid ""
"Failed to remove trailing character. Returning original object. Supplied " "Failed to remove trailing character. Returning original object.Supplied "
"object is not a string: %s," "object is not a string: %s,"
msgstr "" msgstr ""
@@ -373,7 +370,7 @@ msgstr ""
msgid "'obj' argument type is not valid" msgid "'obj' argument type is not valid"
msgstr "" msgstr ""
#: watcher/decision_engine/planner/default.py:75 #: watcher/decision_engine/planner/default.py:76
msgid "The action plan is empty" msgid "The action plan is empty"
msgstr "" msgstr ""
@@ -388,11 +385,11 @@ msgstr ""
msgid "No values returned by %(resource_id)s for %(metric_name)s" msgid "No values returned by %(resource_id)s for %(metric_name)s"
msgstr "" msgstr ""
#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:349 #: watcher/decision_engine/strategy/strategies/basic_consolidation.py:424
msgid "Initializing Sercon Consolidation" msgid "Initializing Sercon Consolidation"
msgstr "" msgstr ""
#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:406 #: watcher/decision_engine/strategy/strategies/basic_consolidation.py:468
msgid "The workloads of the compute nodes of the cluster is zero" msgid "The workloads of the compute nodes of the cluster is zero"
msgstr "" msgstr ""
@@ -573,3 +570,21 @@ msgstr ""
#~ msgid "The WorkFlow Engine has failedto execute the action %s" #~ msgid "The WorkFlow Engine has failedto execute the action %s"
#~ msgstr "" #~ msgstr ""
#~ msgid "ActionPlan %(action plan)s could not be found"
#~ msgstr ""
#~ msgid "Description must be an instance of str"
#~ msgstr ""
#~ msgid "An exception occurred without a description"
#~ msgstr ""
#~ msgid "Description cannot be empty"
#~ msgstr ""
#~ msgid ""
#~ "Failed to remove trailing character. "
#~ "Returning original object. Supplied object "
#~ "is not a string: %s,"
#~ msgstr ""

View File

@@ -7,9 +7,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: python-watcher 0.22.1.dev49\n" "Project-Id-Version: python-watcher 0.23.2.dev1\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2016-01-22 10:43+0100\n" "POT-Creation-Date: 2016-01-26 11:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -23,7 +23,7 @@ msgstr ""
msgid "Invalid state: %(state)s" msgid "Invalid state: %(state)s"
msgstr "" msgstr ""
#: watcher/api/controllers/v1/action_plan.py:416 #: watcher/api/controllers/v1/action_plan.py:420
#, python-format #, python-format
msgid "State transition not allowed: (%(initial_state)s -> %(new_state)s)" msgid "State transition not allowed: (%(initial_state)s -> %(new_state)s)"
msgstr "" msgstr ""
@@ -213,7 +213,8 @@ msgid "Audit %(audit)s is referenced by one or multiple action plans"
msgstr "" msgstr ""
#: watcher/common/exception.py:182 #: watcher/common/exception.py:182
msgid "ActionPlan %(action plan)s could not be found" #, python-format
msgid "ActionPlan %(action_plan)s could not be found"
msgstr "" msgstr ""
#: watcher/common/exception.py:186 #: watcher/common/exception.py:186