Skip to content

Provide has_next() in the object returned by ssh_capture() #109

@lindong28

Description

@lindong28

It can be useful to provide has_next() in the object returned by ssh_capture(), e.g. when we want to wait for a process to start. An example look like the following:

console_consumer_cmd = "..."
output = node.account.ssh_capture(console_consumer_cmd)
output.has_next() // wait until console_consumer has started

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions