Comment 4 for bug 1714405

Tytus Kurek (tkurek) wrote :

I've just faced that when trying to implement an action with a param of the 'float' type. When trying to upgrade the charm the following error message is displayed:

ERROR invalid params schema for action schema set-weight: int is not a valid type

When I change the type to 'number' I can successfully upgrade the charm. I tried changing the type manually to 'float' later on (by modifying the 'actions.yaml' file on the deployed application unit), but then when running the action I get the following error and action fails:

ERROR juju.worker.dependency engine.go:636 "uniter" manifold worker returned unexpected error: preparing operation "run action 35513ba2-6ab3-463e-8eee-c0dab5653d91": cannot create runner for action "35513ba2-6ab3-463e-8eee-c0dab5653d91": invalid params schema for action schema set-weight: float is not a valid type

Juju version is 2.5.1