Skip to content

idle_for type error when used within method #9

@venkivijay

Description

@venkivijay

As per the documentation, when using idle_for utils, the type can be empty. But chaostoolkit expects the type to be either action or probe when used within method. Is this idle_for function not meant to be used within method?

Code (method in an experiment):

method:
  - type: ""
    name: idle-for
    provider:
      type: python
      module: chaosaddons.utils.idle
      func: idle_for
      arguments:
        duration: 300

Error:

[2022-10-18 12:40:41 INFO] Validating the experiment's syntax
[2022-10-18 12:40:41 ERROR] an activity must have a type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions